// Global JS
// On changes do:
// 	-change name to global.vX.js
//  -chagne /include/tools*.jsp
//  -change home.jsp
function submitEnterHome(myfield,e) {
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;
	
	if (keycode == 13) {
	   myfield.form.submit();
	   return false;
	} else {
	   return true;
	}
}

// home.jsp
// DealerSearch\include\dealerSearchFormContainer.jsp
// RenFinPla\include\dealerSearchFormContainer.jsp
function searchStringInfo() {
	sSInfo=window.open('/servlet/ecut/Popup/dealerSearchStringInfo.jsp',null,'height=350,width=250,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,resizable=no');
	sSInfo.moveTo((screen.width-350)/2, (screen.height-250)/2);
	sSInfo.focus()
}

// home.jsp
// include\util\loading_gif.jsp
function showLoadingGif() { 
	//document.getElementById('ld').src='/ecut/images/loading.gif'; 
	getpicpreviewobj().visibility="visible";
}

// home.jsp
// include\util\loading_gif.jsp
function getpicpreviewobj() {
	if (document.getElementById)
		return document.getElementById("loadinggif").style;
	else if (document.all)
		return document.all.loadinggif.style;
}