function sortNumbers(a,b){return (a-b);};function create_formelements(){aa='';add1_tr='';paramwidth='200';this_textcolour_style='COLOR:#000000;';j_membersetup8='';j_membersetup9='';j_membersetup17=add_parametres[0];comma='';get_vthis='';bgcolors(document);for(i=0;i<formelements.length;i++){if(formelements[i][2]<20){if(formelements[i][4]=='1'){get_vthis=get_vthis+comma+formelements[i][3];comma=',';star='*';}else{star='';};if(i%2==1){add_class=this_bodycolour2;add_class2=this_bodycolour3;}else{add_class=this_bodycolour4;add_class2=this_bodycolour1;};this_formtype=get_formtype(formelements[i][1],formelements[i][3],formelements[i][2],'inp');aa=aa+'<TR'+add_class+'><TD ID=txt_'+formelements[i][3]+'>'+clp_ttle(formelements[i][1],formelements[i][2])+star+'</TD><TD'+add_class2+'>'+this_formtype+'<INPUT TYPE=hidden VALUE="'+clp_ttle(formelements[i][1],formelements[i][2])+'" NAME=inp_'+formelements[i][3]+' ID=inp_'+formelements[i][3]+'></TD></TR>';}else{if(formelements[i][2]==20){aa=aa+'<INPUT TYPE=hidden NAME=to_mail ID=to_mail VALUE="'+formelements[i][1]+'">';}else if(formelements[i][2]==22){aa=aa+'<INPUT TYPE=hidden NAME=left_coord ID=left_coord VALUE="'+formelements[i][1]+'">';}else if(formelements[i][2]==23){aa=aa+'<INPUT TYPE=hidden NAME=post_message ID=post_message VALUE="'+formelements[i][1]+'">';};};};bb=document.location.pathname;bb1=bb.search(webid+'_');bb2=bb.search('_main');bb3=webid+'_';bb=bb.substring(bb1+bb3.length,bb2);if(document.all){fontstyle=document.body.currentStyle.fontFamily;}else{fontstyle='';};aa='<FORM NAME=form1 ID=form1 ACTION=m_service.asp METHOD=post onSubmit="return valthis(bcheck(\'vthis\').value,\'inp\');"><TABLE CELLSPACING=0 CELLPADDING=2>'+aa+'<TR><TD COLSPAN=2 ALIGN=right><INPUT STYLE=BACKGROUND-IMAGE:url(images/sendmessage.gif); CLASS=btn TYPE=submit NAME=submit1 ID=submit1 VALUE="&nbsp;&nbsp;&nbsp;&nbsp;'+ust[2]+'"></TD></TR><INPUT TYPE=hidden NAME=clr ID=clr VALUE="'+document.bgColor.substring(1,7)+'"><INPUT TYPE=hidden NAME=clr_txt ID=clr_txt VALUE="'+document.fgColor.substring(1,7)+'"><INPUT TYPE=hidden NAME=fnt ID=fnt VALUE="'+fontstyle+'"><INPUT TYPE=hidden NAME=pt ID=pt VALUE="'+document.title+'"><INPUT TYPE=hidden NAME=c ID=c VALUE='+webid+'><INPUT TYPE=hidden NAME=pageid ID=pageid VALUE="'+bb+'"><INPUT TYPE=hidden NAME=bgpic ID=bgpic VALUE="'+document.body.background+'"><INPUT TYPE=hidden NAME=vthis ID=vthis VALUE="'+get_vthis+'"></TABLE></FORM>';document.getElementById('addelements').innerHTML=aa;if(formelements_vid.length>0){for(i=0;i<formelements_vid.length;i++){if(document.getElementById('txt_'+formelements_vid[i][0])){document.getElementById('txt_'+formelements_vid[i][0]).innerHTML=formelements_vid[i][1];};};};};function clp_ttle(ct1,ct2){if((ct2==6||ct2==7)&&ct1.indexOf(';')>0){ct=ct1.split(';');ct1=ct[0];};return(ct1);};function button_length(xax){if(document.all){xl=document.body.currentStyle.fontSize.replace('px','');xl=Math.abs(xl)/10;}else{xl=1.3;};xax=Math.ceil(((xax.length*5.5)+32)*xl);return (xax);};function checkradio(a){if(document.getElementById(a).checked==false){document.getElementById(a).checked=true;}else{document.getElementById(a).checked=false;};};function c_h(a,c,d){if(c<4){b=prompt(ust[10],'');}else{b=1;};if((b>'') && (b!=' ') && (b!=' ')){if(c==1){parent.main.location.href=('chat.asp?m_h='+m_h+'&tx1='+ust[2]+'&nme='+b+'&uid='+a+'&cl='+d);}else if(c==2){top.location.href=('chat.asp?m_h='+m_h+'&tx1='+ust[2]+'&nme='+b+'&uid='+a+'&cl='+d);}else if(c==3){e=window.open('chat.asp?m_h='+m_h+'&tx1='+ust[2]+'&noo=1&nme='+b+'&uid='+a+'&cl='+d,'chatframe','toolbar=0,top=10,left=20,width=500,height=517,directories=0,status=0,scrollbars=0,resize=no,menubar=0');e.focus(this);}else if(c==4){parent.main.location.href=('cm_msgbrd.asp?m_h='+m_h+'&c=1&f=1&tx1='+ust[2]+'&cid='+cid+'&nme='+b+'&uid='+a+'&cl='+d);}else if(c==5){parent.main.location.href=('cm_ebiz.asp?m_h='+m_h+'&c='+webid+'&f=1&cid='+cid+'&nme='+b+'&uid='+a+'&cl='+d);}else if(c==6){parent.main.location.href=('cm_editpix.asp?m_h='+m_h+'&c='+webid+'&f=1&cid='+cid+'&nme='+b+'&uid='+a+'&cl='+d);};};};function abon(a){var aa=window.open('cm_abon.asp?c='+webid+'&cid='+cid+'&i='+a,'a','HEIGHT=200,WIDTH=200,TOP=10,LEFT=10');aa.focus(this);};function s(a,b,c,d){pic=window.open('include/sp.asp?a='+a+'&b='+b+'&c='+c+'&d='+d.replace(' ',''),'w','WIDTH='+b+',HEIGHT='+c+',MENUBAR=0,TITLEBAR=0,SCROLLBAR=0,');pic.focus(this);}function wt(a){document.write(a)};function ValEmne(item, len){return (item.length>=len);};function isEmail(item){if(item.value!=""){if(!(item.value.indexOf("@")!="-1" &&item.value.length>5 &&item.value.indexOf(".")!="-1" &&item.value.indexOf(" ")=="-1" &&(item.value.substring(item.value.length-3,item.value.length-2)=="." ||item.value.substring(item.value.length-4,item.value.length-3)==".") &&item.value!="")){alert(ust[12]);item.value='';item.focus();};};};function bcheck(bck){if(document.getElementById){bck=document.getElementById(bck);}else if(document.all){bck=document.all[bck];}else{bck=document.layers[bck];};return(bck)};function error(elem, text){if (errfound) return;window.alert(text);elem.select(this);elem.focus(this);errfound=true;};function valthis(f,nme){sep=',';a=f.split(sep);for(i=0;i<a.length;i++){if(a[i]=='pw'){add_paramname='';}else{add_paramname=nme;};this_type=document.getElementById(add_paramname+a[i]).type;this_value=document.getElementById(add_paramname+a[i]).value;this_selectedIndex=document.getElementById(add_paramname+a[i]).selectedIndex;this_checked=document.getElementById(add_paramname+a[i]).checked;if(document.all){this_txt=document.getElementById('txt_'+a[i]).innerText;}else{this_txt=document.getElementById('txt_'+a[i]).innerHTML;};if(this_type=='checkbox' && this_checked==false){alert(ust[0]+': '+this_txt);document.getElementById('txt_'+a[i]).style.backgroundColor='#AA0000';document.getElementById('txt_'+a[i]).style.color='#FFFFFF';return false;}else if(this_type=='radio'){lngt=document.form1.elements(add_paramname+a[i]).length;r_empty='';for(y=0;y<lngt;y++){if(document.form1.elements(add_paramname+a[i])[y].checked==true){r_empty='1';}};if(r_empty==''){alert(ust[0]+': '+this_txt);document.getElementById('txt_'+a[i]).style.backgroundColor='#AA0000';document.getElementById('txt_'+a[i]).style.color='#FFFFFF';return false;};}else if(this_type=='select-one' && this_value==''){alert(ust[0]+': '+this_txt);document.getElementById('txt_'+a[i]).style.backgroundColor='#AA0000';document.getElementById('txt_'+a[i]).style.color='#FFFFFF';return false;}else if(this_value==''){alert(ust[0]+': '+this_txt);document.getElementById(add_paramname+a[i]).focus();document.getElementById('txt_'+a[i]).style.backgroundColor='#AA0000';document.getElementById('txt_'+a[i]).style.color='#FFFFFF';return false;};};if(bcheck('pwn')!=null && bcheck('pwn2')!=null){if(bcheck('pwn').value!=bcheck('pwn2').value){alert(ust[0]+': '+ust[23]);bcheck('txt_pwn2').focus();return false;};}else if(bcheck('login')!=null){if(bcheck('login').value.length<5){alert(ust[0]+': '+ust[9]+'\nMin. 5 Chr.');bcheck('login').focus();return false;};};if(bcheck('pw')!=null && bcheck('pw2')!=null){if(bcheck('pw').value!=bcheck('pw2').value){alert(ust[0]+': '+ust[16]);bcheck('pw2').focus();return false;};};};function valnumeric(field){var valid="0123456789";var ok="yes";var temp;for (var i=0; i<field.value.length; i++){temp=""+field.value.substring(i, i+1);if (valid.indexOf(temp)=="-1") ok="no";};if (ok=="no"){field.value='';alert(ust[1]+":\n[ - 0 1 2 3 4 5 6 7 8 9 ]");field.focus();};};var cnter=0;function counter(){cnter=cnter+1;if(cnter==3){document.form1.subm.style.visibility='hidden';};};function textareax1(field){tname=field.name;bcheck(tname).style.width=350;bcheck(tname).style.top=-15;;bcheck(tname).style.height=200;bcheck(tname).style.fontSize=12;bcheck(tname).style.zIndex=120000;if(top.frames['main']){bcheck(tname).style.backgroundColor=top.frames['main'].document.body.bgColor;};if(bcheck(tname+'_counter')){bcheck(tname+'_counter').style.top=184;bcheck(tname+'_counter').style.width=350;bcheck(tname+'_counter').style.left=0;bcheck(tname+'_counter').style.border='1px #000000 solid';bcheck(tname+'_counter').style.visibility='visible';};};function textareax2(field,b){tname=field.name;if(field.value.length>4000){bcheck(tname).value=bcheck(tname).value.substring(0,4000)};bcheck(tname).style.width=b;bcheck(tname).style.fontSize='';bcheck(tname).style.top=0;bcheck(tname).style.height=38;bcheck(tname).style.backgroundColor='';if(bcheck(tname+'_counter')){bcheck(tname+'_counter').style.top=0;bcheck(tname+'_counter').style.width=0;bcheck(tname+'_counter').style.left=0;bcheck(tname+'_counter').style.visibility='hidden';};};function textareax3(field){tname=field.name;if(field.value.length>4000){bcheck(tname).value=bcheck(tname).value.substring(0,4000)};bcheck(tname+'_counter').innerHTML=field.value.length+'&nbsp;';};function suphex(sx,sx2){if(sx){if(sx.length==6){string1=sx.substring(0,2);string1=parseInt(string1,16);string1=updown(string1,sx2);string2=sx.substring(2,4);string2=parseInt(string2,16);string2=updown(string2,sx2);string3=sx.substring(4,6);string3=parseInt(string3,16);string3=updown(string3,sx2);sx=hex(string1)+hex(string2)+hex(string3);return sx;};};};function updown(str,level){if(str>128){str=(str-(2*level));}else if(str>(3*level+1)){str=(str-(3*level));}else{str=(str+(3*level));};return str;};function hex(i){var sHex="0123456789ABCDEF";h="";for(j=0; j<1; j++){h += sHex.charAt((i>>(j*8+4))&0x0F)+sHex.charAt((i>>(j*8))&0x0F);};return h;};function ch_bg_c(){tal_arr=['en','to','tre','fire','fem','seks','syv','otte','ni','ti','elleve','tolv'];for(i=0;i<36;i++){for(y=0;y<2;y++){for(x=0;x<2;x++){if(i<12){tname=tal_arr[i];if(x==1){tname='tc'+tname;};tcolor=arr_c[0];}else{if(x==0){tname='t'+(i+1);}else{tname='tc'+(i+1);};tcolor=arr_c[i-11];};if(y==0){tborder='border1';}else{tborder='border2';};if(parent.frames[tborder]){if(parent.frames[tborder].document.getElementById(tname)){parent.frames[tborder].document.getElementById(tname).style.backgroundColor='#'+tcolor;};};};};};if(!document.all){document.write('<IMG ID=brdc1 SRC=images/space.gif STYLE="POSITION:absolute;TOP:0;LEFT:0;WIDTH:1;HEIGHT:'+(document.body.scrollHeight)+';BACKGROUND-COLOR:#'+brdclr+';"><IMG ID=brdc2 SRC=images/space.gif STYLE="POSITION:absolute;TOP:0;RIGHT:0;WIDTH:1;HEIGHT:'+(document.body.scrollHeight)+';BACKGROUND-COLOR:#'+brdclr+';">');if(!parent.frames['border1']){document.write('<IMG ID=brdc3 SRC=images/space.gif STYLE="POSITION:absolute;TOP:0;LEFT:0;WIDTH:'+(document.body.scrollHeight)+';HEIGHT:1;BACKGROUND-COLOR:#'+brdclr+';">');};if(!parent.frames['border2']){document.write('<IMG ID=brdc4 SRC=images/space.gif STYLE="POSITION:absolute;TOP:0;LEFT:0;WIDTH:0;HEIGHT:1;BACKGROUND-COLOR:#'+brdclr+';">');};setTimeout('ch_bg_c2()',500);};};function ch_bg_c2(){bcheck('brdc1').style.height=document.body.scrollHeight;bcheck('brdc2').style.height=document.body.scrollHeight;if(!parent.frames['border1']){bcheck('brdc3').style.width=document.body.scrollWidth;};if(!parent.frames['border2']){bcheck('brdc4').style.width=document.body.scrollWidth;bcheck('brdc4').style.top=document.body.scrollHeight;};};
