function check_entry(theForm) {var output = "";var allowed= new Array("0","1","2","3","4","5","6","7","8","9");var keys = theForm.value;var keylength = keys.length;for (i=0; i<=keylength-1; i++){var thekey = keys.charAt(i);0var exists = 0;for (x in allowed){var keyok = allowed[x];if (thekey==keyok){var exists = 1;}}if (exists != 0){var output = output + thekey;}}theForm.value=output;}function ref_search(ref_obj,this_obj){_obj=document.getElementById(ref_obj);ref=_obj.value;if (ref!=''){this_obj.href=this_obj.href+ref;return true;}else{alert('You have not entered a reference number!');_obj.focus();}return false;}function dev_search(ref_obj,this_obj){_obj=document.getElementById(ref_obj);ref=_obj.value;if (ref!=''){this_obj.href=this_obj.href+ref;return true;}else{alert('You have not selected a development to search for!');_obj.focus();}return false;}function parameters(){var l = document.location.href;//l="test?order=123&test=9876&qaz=dedee";var m=l.split("?");a=new Array();if (m.length==2){var str=m[1];x=str.split("&");for(i=0;i<x.length;i++){y=x[i].split("=");a[y[0]]=y[1]; //key versiona[i]=new Array(y[0],y[1]); //num version}}return a;}function parameters_to_string(input){x="";for(i=0;i<input.length;i++){x+=input[i][0]+"="+input[i][1]+"&";}x=x.substr(0,x.length-1);return x;}function parameters_replace(key,newvalue){var p=parameters();var e=0;for(i=0;i<p.length;i++){	if (p[i][0]==key){	p[i][1]=newvalue;		e=1;	}}if (e==0){p[p.length]=new Array(key,newvalue);	}p[key]=newvalue;return p;	}function order(obj,key,newvalue){obj.value;if (key!=null){x=parameters_to_string(parameters_replace(key,obj.value));var l = document.location.href;var m=l.split("?");if (m.length<=2){document.location.href=(m[0]+"?"+x);}}	}function displayimage(obj,link){f=$(obj).src=link;return false;	}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}