// JavaScript Document
var win1Open = null
var win2Open = null

function displayImage(picName, windowName, windowWidth, windowHeight){
  return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20)  + ",height=" + (parseInt(windowHeight)+20)) 
  }

function winClose(){    // close all open pop-up windows   
  if(win1Open != null) win1Open.close() 
  if(win2Open != null) win2Open.close() 
  }

function doNothing(){}  // does nothing but required by JavaScript in this case

function popup(){
			var win=window.open('selectDate3.aspx',null,'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=195,height=185,left = 515,top = 275');
		}
		
function popupTerms(){
			var win=window.open('terms.htm',null,'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=480,height=400,left = 215,top = 175');
		}

function setDate(o){
				document.getElementById("calendar_function_date").value = o;
		}
		

function changenewnavi(ori, newsrc)
	{
		//x = Math.random()*350;
		//y = Math.random()*350;
		//imgobj.style.position='absolute';
		ori.src = newsrc
	}

function swapImage(ori, orisrc)
	{
		//x = Math.random()*350;
		//y = Math.random()*350;
		//imgobj.style.position='absolute';
		document.getElementById(ori).src = orisrc;	
	}

function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}