

function SwapImage(imageID,newImage)
{
    document.getElementById(imageID).src = newImage;
}


function GetDate(CtrlName)    
{   

	/****************************************************      
	Use Javascript method (window.open) to PopUp a new window    
	which contain a Calendar Control. In the meantime, we'll    
	pass the Parent Form Name and Request Control Name in the QueryString!     
	 *****************************************************/        
	 ChildWindow = window.open('http://www.matrikon.com/controls/Calendar.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=152,height=186,top=725,left=375,toolbars=no,scrollbars=no,status=no,resizable=no");   
	 
 } 
 
function CheckWindow()   
{      
	ChildWindow.close();   
}

function ReturnDate()
{

   window.opener.document.forms["<%= strFormName %>"].elements["<%= strCtrlName %>"].value = "<%= strSelectedDate %>";
   window.close();

}
        
function Close()
{
   window.close();
}


