/*
	1508 A/S JavascriptHandler
	Generated 2010-09-09 01:42:54

	Options:
	enableClientCache:   False
	useHttpCompression:  True  - if client can handle it
*/
/*		File: /default.js		*/
function newImage(ID,file){document.getElementById(ID).src="/images/"+file;}function open_window(URL,name,left,top,width,height,menubar){rp=window.open(URL,name,"top="+top+",left="+left+",height="+height+",width="+width+",menubar="+menubar+",scrollbars=1,resizable=1,status=1");rp.focus();return(false);}function doSearch(fld,target){location.href=target+"?search="+eval("document.forms[0]."+fld).value;}function doKeySearch(evt,fld,target){if(evt.keyCode==13){window.document.forms[0].action=target+"?search="+eval("document.forms[0]."+fld).value;evt.returnValue=null;evt.cancelBubble=true;doSearch(fld,target);}return false;}
/*		File: /xpac5.standard.js		*/
function OpenWindow(url,w,h,attr){var m_attr="toolbar=1,location=0,directories=0,status=0,menubar=yes,scrollbars=yes,resizable=yes";if(attr){m_attr=attr;}window.open(url,"",m_attr+",width="+w+",height="+h);}function PreviewImage(imageid,w,h,autoresize){OpenWindow("/Forms/PreviewImage.aspx?imageid="+imageid+"&autoresize="+autoresize,w,h,"toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable=yes");}function PrintPage(){var loc=location.href;if(loc.indexOf("#")>0){loc=loc.substring(0,loc.indexOf("#"));}var pri="?p=1";if(loc.indexOf("?")>0){pri="&p=1";}OpenWindow(loc+pri,760,400);}function SendPage(path,id){var loc=path+"?pageid="+id;OpenWindow(loc,320,250,"toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no");}function CheckForm(form){if(form.from.value==""||form.to.value==""){if(form.from.value==""){document.getElementById("error1").style.display="inline";}if(form.to.value==""){document.getElementById("error2").style.display="inline";}return false;}else{return true;}}function SetPostAction(val){var sUrl=val;if(sUrl.indexOf("/")<0){sUrl="/forms/"+sUrl;}if(sUrl.indexOf(".aspx")<0){sUrl=sUrl+".aspx";}document.forms[0].action=sUrl;}function QS(name){var tmp=unescape(location.search.substring(1));var i=tmp.toUpperCase().indexOf(name.toUpperCase()+"=");if(i>=0){tmp=tmp.substring(name.length+i+1);i=tmp.indexOf("&");return(tmp=tmp.substring(0,(i>=0)?i:tmp.length));}return("");}
