function moreWindow(fileName,w,h,s) {
var posCode = '';
posX = Math.round((screen.width - w) / 2);
posY = Math.round((screen.height - h - 200) / 2);
posCode = (document.all)? ",left="+posX+",top="+posY : ",screenX="+posX+",screenY="+posY;
moreWin = window.open(fileName,"winName","status=no,menubar=no,toolbar=no,resizable=no,scrollbars="+s+",location=no,width="+w+",height="+h+posCode);
moreWin.focus();
}



function w(uri,w,h){
	l=(screen.width-w)/2;
	t=(screen.height-h)/2;
	window.open(uri,'new','width='+w+', height='+h+', toolbar=0, location=0, scrollbar=0, status=0, resizable=0, menubar=0, top='+t+', left='+l);
	return false;
}


function wr(elem){
w=document.images[0].width;
h=document.images[0].height;
l=(screen.width-w)/2;
t=(screen.height-h)/2;
window.resizeTo(w,h);
window.moveTo(l,t);
}


function s(s){
var f=document.r;
var reg=new RegExp("[a-zA-Z0-9_]");
var bad=false;
	f.submit.disabled=true; t=f.l.value+f.p1.value+f.p2.value;
	for(i=0;i<t.length;i++){if((t.charCodeAt(i)>64 && t.charCodeAt(i)<91) || (t.charCodeAt(i)>96 && t.charCodeAt(i)<123) || (t.charCodeAt(i)>47 && t.charCodeAt(i)<58)){bad=false;}else{bad=true;i=t.length;}}
	f.submit.disabled=(!bad && f.n.value && t>'' && t.length>0 && (f.p1.value==f.p2.value) && f.l.value.search(reg)>=0 && f.p1.value.search(reg)>=0 && f.p2.value.search(reg)>=0)?false:true;
	if(s==1 && !f.submit.disabled){
	f.submit();
	}
}

