// JavaScript Document

// ###################################### newsletter pop up function ######################## 
function pop_let(name, mail, page){
//alert("ss");
	var strWindowFeatures = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=501,height=597";
	if(name !="" && name !=null && mail !="" && mail != null ){
		//alert(name + " , " + mail + " , " + page);
		window.open("pops/newsletter.aspx?name="+ name +"&mail="+ mail +"&page="+ page +"","_blank", strWindowFeatures);
		}else{
			//alert("Insert name ");
			// do nothing, the validators will appear
			}
	}	
// ###########################################################################################

function pop_me_up_m8(where, mewidth, meheight, title){
	
	
	var w = 480;
	var h = 340;

//if (document.all || document.layers) {
   w = screen.availWidth;
   h = screen.availHeight;
//}

var popW = mewidth, popH = meheight;

var leftPos = (w-popW)/2 ;
var topPos = (h-popH)/2;


	MEtestwindow= window.open (where, title,"location=0,status=0,scrollbars=1,width="+ mewidth +",height="+ meheight +",top=" + topPos + ",left=" + leftPos +"");
   // MEtestwindow.moveTo(topPos, leftPos);
	
	}
