// JavaScript Document

function highlightCurrent(){
	if (curTab != 'null'){
		document.getElementById(curTab).className="navCurrent";
	}
   if (typeof(calendarLoad) != "undefined"){
		WindowLoad();	
	}
	if (document.getElementById('ordersInnerFrame')){
		var frmObj = document.getElementById('ordersInnerFrame');
		resizeIframe(frmObj);
 	}
}

function openInfoWindow(url){
	var newwindow = '';
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = url;
	}
	else
	{
		newwindow=window.open(url,"locationInfo","width=600,height=500,resizable=yes,scrollbars=yes");
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus();}
	return false;
}

function showHide(id,show,className){
	if (show == true){
		if (className != -1){
			document.getElementById(id).className=className;
		}
		else{
			document.getElementById(id).className='visible';	
		}
	}
	else{
		document.getElementById(id).className='hidden';	
	}
	return true;
}

function setHiddenField(obj,idToSet){
	//alert (obj.value);
	document.getElementById(idToSet).value=obj.value;		
}
