function open_win(page)
{
	window.open(page,"_blank", "toolbar=yes, location=no, directories=no, status=no, menubar=yes," +
					 "scrollbars=no, resizable=yes, copyhistory=yes, top=0, left=100, width=650, height=650")
}


function open_win2(page)
{
	window.open(page,"_blank", "toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes," +
					 "scrollbars=yes, resizable=yes, copyhistory=yes, top=0, left=100, width=750, height=750")

}

function open_win3(page)
{
	window.open(page,"_blank", "toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes," +
					 "scrollbars=yes, resizable=yes, copyhistory=yes, top=0, left=100, width=950, height=950")

}


/* ********************************************************************************************* 
 ****************** The following will calculate the current and local time. *******************
 ********************************************************************************************* */
// Start -->

function GetTime() 
{ 
	var dt = new Date();
	var def = dt.getTimezoneOffset()/60;
	var x = 0;
	
	if(def % 1 != 0)
	{
		def = def - 0.5;
		x = 30;
	}
	
	
	
	var gmt = (dt.getHours() + def +1);
	
	var a1;
	var a2;
	
	

	var hours = IfZero(dt.getHours());
	var min = IfZero(dt.getMinutes());
	var sec = IfZero(dt.getSeconds());
	
	
	a1 =  hours + ":" +  min + ":" + sec ;
	
	
	var min1 = IfZero(dt.getMinutes() + x);
	var y =0;
	if (min1 > 60)
	{
		min1 = IfZero(min1 - 60);
		y = 1;
	}
	var ending = ":" +  min1 + ":" + IfZero(dt.getSeconds());


	document.getElementById('local').innerHTML = a1;


	var mount =check24(((gmt + (24-7)) > 24) ? ((gmt + (24-7)) - 24) : (gmt + (24-7)));
	a2 = (IfZero(mount + y) + ending);
	
	document.getElementById('mount').innerHTML = a2;

	setTimeout("GetTime()", 1000);
}

function IfZero(num) 
{
	return ((num <= 9) ? ("0" + num) : num);
}

function check24(hour) 
{
	return (hour >= 24) ? hour - 24 : hour;
}

/* ********************************************************************************************* 
   ********************************************************************************************* */
// End -->