function add_subscriber() {

var js_load=document.getElementById("js_scr"); 
var email=document.getElementById("add_subscriber").value;
var re = /^([a-z0-9_\-]+\.)*[a-z0-9_\-]+@([a-z0-9][a-z0-9\-]*[a-z0-9]\.)+[a-z]{2,4}$/i;

  if (!re.test(email)) { alert("Ââåäèòå ïðàâèëüíûé E-mail"+email); } else { js_load.src="functions/js_scr.php?email="+email; }
  
  
}

function open_window(link,w,h) {
	var win = "width="+w+",height="+h+",menubar=no,location=no,resizable=no,scrollbars=yes";
	newWin = window.open(link,'newWin',win);
}

function WindowPos(mypage,myname,wW,wH,scroll){

	var wW = (!wW)? 100 : wW;
	var wH = (!wH)? 100 : wH;

	if ( navigator.appName == "Netscape") { 
		var winl = (screen.width - wW)/ 2 ;
		var wint = (screen.height - wH)/ 2 ;
		wW = wW +20;
	} else {
		winl = (screen.width) ? (screen.width-wW)/2 : 0;
		wint = (screen.height) ? (screen.height-wH)/2 : 0;
	}	
	
	var winprops = navigator.appName == "Netscape" ? 'height='+wH+',width='+wW+',top='+wint+',left='+winl+',toolbar=no,'+'location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes' : 'height='+wH+',width='+wW+',top='+wint+',left='+winl+',toolbar=no,'+'location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes';
	

	win = window.open(mypage,myname,winprops);
	if (parseInt(navigator.appVersion) >= 4)
		win.window.focus();
}