// JavaScript Document
function changeLoc(page){
	location.href=page+".html";
	return true;	
	}
function savePageAsPDF() {
   var pURL = "http://savepageaspdf.pdfonline.com/pdfonline/pdfonline.asp?cURL=" + escape(document.location.href);
  window.open(pURL, "PDFOnline", "scrollbars=yes, resizable=yes,width=640, height=480,menubar,toolbar,location");

}
function printPage() {
	window.print();
}
var newwindow;
function openpopup(url)
{
	newwindow=window.open(url,'name','height=500,width=600, scrollbars=false, location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no');
	if (window.focus) {newwindow.focus()}
}

function openpopup2(url)
{
	newwindow=window.open(url,'name','height=500,width=600, scrollbars=false, location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no');
	if (window.focus) {newwindow.focus()}
}
function openpopupMYGreen(url,name, height, width, scroll)
{
	newwindow=window.open(url,name,'height='+height+',width='+width+', left=150, top=20, scrollbars='+scroll+', location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes');
	if (window.focus) {newwindow.focus()}
}

function showDiv(id)
{
	
	if(id=="far"){
	hideDiv('login');
	}
	else if(id=="login"){
		hideDiv('far');
		
		}
		else{ 
			}
			
		document.getElementById(id).style.visibility="visible";
		document.getElementById(id).style.display="block";
	}
function hideDiv(hid){
	document.getElementById(hid).style.visibility="hidden";
		document.getElementById(hid).style.display="none";
	}
function openpopupfeedback(url,name, height, width, scroll)
{
	newwindow=window.open(url,name,'height='+height+',width='+width+', left=150, top=20, scrollbars='+scroll+', location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no');
	if (window.focus) {newwindow.focus()}
}
function newWindowweather(a,b)
{
	popupWindow = window.open('http://203.92.40.236/ITCWeather/WeatherPopup.asp?city='+a+'&template='+b,'popUpWindow','height=633,width=446,left=50,top=30,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no, status=yes');
	
}
function windowWeatherNew(value)
{
	popupWindow = window.open('http://203.92.40.236/itc/itcweather/'+value,'popUpWindow','height=440,width=650,left=50,top=30,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no, status=yes');
}

