// JavaScript Document

function GetTime() { 

				var dt = new Date();
				var def = dt.getTimezoneOffset()/60;
				var gmt = (dt.getHours() + def);
				
				

				var Month = dt.getUTCMonth();
				var MonthNum = Month.toString();
				var Dat = dt.getUTCDate();

				if (Dat > 9){
					var DatNum = Dat.toString();	
				}
				else{
					var DatNum = "0" + Dat.toString();	
				}

				var MonthDate = MonthNum + DatNum;

				//var ending = ":" + IfZero(dt.getMinutes()) + ":" +  IfZero(dt.getSeconds());
				//var ending = ":" + IfZero(dt.getMinutes()) + " Date: " + IfZero(dt.getFullYear()) + " " +  IfZero(dt.getUTCDate());
				var ending = ":" + dt.getUTCMinutes();

				//California
				if ((MonthDate > 301) && (MonthDate <928)){
					var ca =check24(((gmt + (24-7)) > 24) ? ((gmt + (24-7)) - 27) : (gmt + (24-7)));
					document.clock.ca.value = (IfZero(ca) + ending);					
				}
				else
				{

					var ca =check24(((gmt + (24-8)) > 24) ? ((gmt + (24-8)) - 24) : (gmt + (24-8)));
					document.clock.ca.value = (IfZero(ca) + ending);
				}

				//Texas
				if ((MonthDate > 401) && (MonthDate <928)){
					var tx =check24(((gmt + (24-5)) > 24) ? ((gmt + (24-5)) - 24) : (gmt + (24-5)));
					document.clock.tx.value = (IfZero(tx) + ending);
				}
				else{
					var tx =check24(((gmt + (24-6)) > 24) ? ((gmt + (24-6)) - 24) : (gmt + (24-6)));
					document.clock.tx.value = (IfZero(tx) + ending);
				}
				
				//China
				if ((MonthDate > 201) && (MonthDate <928)){
					var ch =check24(((gmt + (7)) > 24) ? ((gmt + (7)) - 24) : (gmt + (7)));
					document.clock.ch.value = (IfZero(ch) + ending);
				}
				else{
					var ch =check24(((gmt + (8)) > 24) ? ((gmt + (8)) - 24) : (gmt + (8)));
					document.clock.ch.value = (IfZero(ch) + ending);
				}
				
				setTimeout("GetTime()", 1000);
				}
				function IfZero(num) {
				return ((num <= 9) ? ("0" + num) : num);
				}
				function check24(hour) {
				return (hour >= 24) ? hour - 24 : hour;
				}

function pgl_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}