var g_arrForms=new Array();function Form(a){this.m_strName=a;this.m_bShowLeavePageWarning=false;this.m_pElement=document.getElementById(a);this.m_arrValidations=new Array();this.m_bHasValidationFailed=false;g_arrForms[a]=this;}Form.prototype.isModified=function(){for(var c=0,b=this.m_pElement.elements.length;c<b;c++){var a=this.m_pElement.elements[c];if(a.defaultValue==undefined){continue;}if((a.type=="hidden")&&(typeof g_arrHTMLEditors!="undefined")&&(g_arrHTMLEditors[a.id])){if(g_arrHTMLEditors[a.id].S8.IsDirty()){return true;}}else{if(a.value!=a.defaultValue){if(a.id&&a.id.indexOf("___")==-1){return true;}}}}return false;};Form.prototype.validate=function(){var a="";for(var d in this.m_arrValidations){var b=d.length;var c=b-9;if(b>9&&d.substr(c,9)){a+=this.m_arrValidations[d]();}}return a;};Form.prototype.onSubmit=function(){var a=this.validate();if(a){this.m_bHasValidationFailed=true;alert(a);return false;}this.m_bHasValidationFailed=false;this.m_bShowLeavePageWarning=false;return true;};Form.prototype.onKeyPress=function(a){if(!a){a=window.event;}var b=(document.all)?a.keyCode:a.which;if(a.ctrlKey){if(b==83){this.m_bShowLeavePageWarning=false;this.m_pElement.submit();return false;}}return true;};Form.prototype.onLeavePage=function(){if(this.m_bShowLeavePageWarning&&this.isModified()){return"If you press OK, changes made to the fields on this form will be lost.";}return undefined;};
EditBoxInitializeValueHint=function(c,d){c.valuehint=d;var b=function(){if(this.value==this.valuehint){this.value="";var e=c.currentStyle||c.ownerDocument.defaultView.getComputedStyle(c,null);if(e.color=="#888888"||e.color=="rgb(136, 136, 136)"){this.style.color="#000000";}}};c.onfocus=b;var a=function(){if(!this.value){this.value=this.valuehint;var e=c.currentStyle||c.ownerDocument.defaultView.getComputedStyle(c,null);if(e.color=="#000000"||e.color=="rgb(0, 0, 0)"){this.style.color="#888888";}}};c.onblur=a;c.onblur();};
var getBasePath=function(){var a=location.href;a=a.substr(a.indexOf("//")+2);a=a.substr(a.indexOf("/"));if(a.length>1&&a.charAt(1)=="~"){return a.substr(0,a.indexOf("/",1)+1);}return"/";};
function cookieSet(b,d,a,f,c,e){if(!f){f=getBasePath();}document.cookie=b+"="+escape(d)+((a)?"; expires="+a.toGMTString():"")+((f)?"; path="+f:"")+((c)?"; domain="+c:"")+((e)?"; secure":"");}function cookieGet(c){var b=document.cookie;var e=c+"=";var d=b.indexOf("; "+e);if(d==-1){d=b.indexOf(e);if(d!=0){return null;}}else{d+=2;}var a=document.cookie.indexOf(";",d);if(a==-1){a=b.length;}return unescape(b.substring(d+e.length,a));}function cookieRemove(a,c,b){if(cookieGet(a)){document.cookie=a+"="+((c)?"; path="+c:"")+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
cookieSet("analytics","newdata");cookieSet("screen_width",screen.width);cookieSet("screen_height",screen.height);
if(typeof(g_arrLoadedJavaScript) == 'undefined')
	var g_arrLoadedJavaScript = [-1257288727];
else
	g_arrLoadedJavaScript.push(-1257288727);
