// Clear Search Field onFocus
function clearField(fieldName) {
	var cleared = 0;
	if (cleared != 1) {
		fieldName.value = "";
		cleared = 1;
	}
	else {
		cleared = 0;
	}
}

// Submit Search Criteria
function searchSubmit() {
	document.searchForm.submit();	
}

// Jump to New URL from Form Select
function jumpURL(selection) {
	var tempIndex, selectedURL; 
	tempIndex = selection.selectedIndex; 
	selectedURL = selection.options[tempIndex].value; 
	window.top.location.href = selectedURL;
}

// Popup Window
function popupwindow(url,features) {
	if (features == '') {
		newWindow = window.open(url,'tempwindow',width=640,height=480,toolbar=no,scrollbars=yes);
	}
	else {
		newWindow = window.open(url,'tempwindow',features);
	}
}

// Close Popup Window and Reload Parent
function closereload(url) {
	window.opener.location = url;
	self.close();
}
function myPopup1() {
window.open( "PartLabs.cfm?PageId=676975830112&amp;<cfoutput>App=Yes&Reg=#SESSION.REGION2#&Cty=#SESSION.COUNTRY2#&Lang=#SESSION.URLLANG#</cfoutput>", "myWindow", 
"status = 1, height = 500, width = 700, resizable = 0, scrollbars = 1, top = 300, left = 500" )
}

function myPopup() {
window.open( "bm1.cfm", "myWindow", 
"status = 1, height = 950, width = 300, resizable = 0, scrollbars = 1, top = 0, left = 500" )
}

function popUpSum(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=800,left = 300,top = 100');");
}
