﻿// JScript File

function Popup(title, url, width, height, scroll) {
		
	var winLeft = (screen.width - width) / 2;
	var winTop = (screen.height - height) / 2 - 20;

	day = new Date();
	id = day.getTime();
	
	eval("Win = window.open('" + url + "', '" + title + "', 'toolbar=0,scrollbars=" + scroll + ",location=0,statusbar=0,menubar=0,resizable=0, width=" + width + ", height=" + height + ", left=" + winLeft + ", top=" + winTop + "');");
	Win.focus();
}

function OpenInfo(obj1, obj2)
{
	var view = document.getElementById(obj2);
	var btn = obj1;
			
	if(view.style.display != "block")
	{
		view.style.display = "block";
		btn.src = "../images/icon_up.gif";
	}
	else
	{
		view.style.display = "none";
		btn.src = "../images/icon_down.gif";
	}
	
}

function test()
{
	alert("test");
}