/* ----------Nbox start ------------------- */
/* Nbox functions*/

var nbox_current;
var nbox_current_timeout;
// Record scripts
function nbox_over(self) {
	
	if ((nbox_current) && (nbox_current != self)) nbox_out(nbox_current);
	if (nbox_current == self) return;
	

//	if (self.filters.item(0)) { 
		// INFU ADD
//		self.filters.item(1).orientation='horizontal';
//		self.filters.item(0).apply();          //-- TRANSITION :: start point
//		}
	
	

	//self.style.backgroundImage = "url('images/nbox_recbg_over.jpg')";
	//self.style.borderRight = "6px solid";
	//self.style.padding = "5 1 5 10";
//	self.style.backgroundColor = "#eeeeee";
	self.className = "nbox-record nbox-over";

	
        //if (self.filters) self.filters.item(0).play();           //-- TRANSITION :: end point
        nbox_current = self;
        
        clearTimeout(nbox_current_timeout);
}
function nbox_mouseOut() {
	clearTimeout(nbox_current_timeout);
	nbox_current_timeout = setTimeout('nbox_out()', 2000);
}

function nbox_out(self) {
	if (!self) self = nbox_current;
	//self.style.backgroundColor = 'transparent';

	self.className = "nbox-record";
	//self.style.backgroundImage = "url('images/nbox_recbg.jpg')";
	//self.style.borderRight = "2px solid";
	//self.style.padding = "5 5 5 10";
	nbox_current = false;
}


/* -----------Nbox end------------------ */








/* ----------Nbox 22222222222 start ------------------- */
/* Nbox functions*/

var nbox_current2;
var nbox_current_timeout2;
// Record scripts
function nbox_over2(self) {
	
	if ((nbox_current2) && (nbox_current2 != self)) nbox_out2(nbox_current2);
	if (nbox_current2 == self) return;
	

//	if (self.filters.item(0)) { 
		// INFU ADD
//		self.filters.item(1).orientation='horizontal';
//		self.filters.item(0).apply();          //-- TRANSITION :: start point
//		}
	
	

	//self.style.backgroundImage = "url('images/nbox_recbg_over.jpg')";
	//self.style.borderRight = "6px solid";
	//self.style.padding = "5 1 5 10";

	self.style.backgroundColor = self.overcolor;

	
        //if (self.filters) self.filters.item(0).play();           //-- TRANSITION :: end point
        nbox_current2 = self;
        
        clearTimeout(nbox_current_timeout2);
}
function nbox_mouseOut2() {
	clearTimeout(nbox_current_timeout2);
	nbox_current_timeout2 = setTimeout('nbox_out2()', 2000);
}

function nbox_out2(self) {
	if (!self) self = nbox_current2;
	self.style.backgroundColor = self.normalcolor;

	//self.style.backgroundImage = "url('images/nbox_recbg.jpg')";
	//self.style.borderRight = "2px solid";
	//self.style.padding = "5 5 5 10";
	nbox_current2 = false;
}


/* -----------Nbox end------------------ */






function ShowCalendar(CONTROL,START_YEAR,END_YEAR,FORMAT,FORMTOSUBMITAFTER){
	if(FORMTOSUBMITAFTER!=false){
		//alert(FORMTOSUBMITAFTER);
		formToSubmit = FORMTOSUBMITAFTER;
	}else{
		formToSubmit = false;
	}
//alert(CONTROL);
//ControlToSet = eval(CONTROL);
FormToSubmit = FORMTOSUBMITAFTER;
ControlToSet = (CONTROL);
StartYear = START_YEAR;
EndYear = END_YEAR;
FormatAs = FORMAT;
CalWidth = 200;
LEFT =10;
TOP =10;

var strFeatures = "width=" + CalWidth + ",height=170" + ",left=" + LEFT + ",top=" + TOP;
//return false;
path = "HTMLCalendar.htm";
//alert(path);
var CalWindow = window.open(path,"Calendar", strFeatures)
CalWindow.focus();
} //End Function

function ClearCalendar(CONTROL,formToSubmit){
	ControlToSet = (CONTROL);
	myobj = document.getElementById(ControlToSet);

	myobj.value = ""; 
	myobj = null;

	ControlToSet = null;
	StartYear = null;
	EndYear = null;
	FormatAs = null;
	if(formToSubmit!=false){
		document.forms[formToSubmit].submit();
	}	
} //End Function

function SetDate(DATE){
//alert(ControlToSet);
if(ControlToSet){
//alert();

ControlToSet.value = DATE; 
}
//alert(ControlToSet);
myobj = document.getElementById(ControlToSet);

myobj.value = DATE; 
myobj = null;

ControlToSet = null;
StartYear = null;
EndYear = null;
FormatAs = null;
	if(formToSubmit!=false){
		document.forms[formToSubmit].submit();
	}
}
