//Navigation links for onClick Events (Buttons and td cells etc)
function NavTo(url){
	window.location=url;
	}
	
//Function to open a small popup window..width = 400 and height = 400
function OpenSmallWindow(url){
	window.open(url,'',"left=150,top=150,width=400,height=350, resizable, scrollbars");
	
	}
	
//Function to open a new window based on your size specs..eg Onclick="OpenSpecWindow('page to be opened', 400, 200)"
function OpenSpecWindow(url, width, height){
	window.open(url,'',"left=75,top=75,width=" + width + ",height=" + height +", status=no,toolbar=no,menubar=no,resizable,directories=no,location=no , scrollbars");
	
	}	
	

//Function to open a new window based on your size specs..eg Onclick="OpenSpecWindow('page to be opened', 400, 200)"
function OpenSpecWindowNoScroll(url, width, height){
	window.open(url,'',"left=75,top=75,width=" + width + ",height=" + height +", status=no,toolbar=no,menubar=no,directories=no,location=no");
	
	}	
	
//Function to open full window with scrollbars....Pass the filename that needs to be opened in the new window
function OpenFullWindow(url){
	window.open(url,'',"left=0,top=0, width=800, height=600, scrollbars, resizable");
	}	
	
function OpenNewWindow(url){
	window.open(url);
	}	
	

	

function calendar(NAVURL,FNAME,FFIELD){
	win="";
			NEWNAVURL=NAVURL+"?fname="+FNAME+"&ffield="+FFIELD;
			if (win && win.open && !win.closed){
			win.focus();
			win.document.location.href=NEWNAVURL;
			}

win=window.open(NEWNAVURL,'calender',"width=243,height=230,left=0,top=0,toolbar=no,scrollbars=no,menubar=0;statusbar=0;border=0;frameborder=0");

// Add this
// <button class="CalButton" onclick= "calendar('/calendar_inc/calendar_server_date.php','FORM NAME','FIELD NAME')">: :</button>
}

//Close pop-up and NO refresh of parent
function ClosePopUp(){
	self.close();
}

	
//Function to close popup and refresh parent
function CloseRefreshParent(){
opener.location.href = opener.location.href;
//opener.location.reload(true);
self.close();
}


//Function to close popup and browse to URL
function CloseParentToURL(url){
opener.location.href = url;
//opener.location.reload(true);
self.close();
}
