function popUpWindow(URLStr, width, height) {		
	if(width >= screen.width || height >= screen.height)
		var size = 'full';
	
	if(size != "full"){
		var left = Math.round((screen.width - width) / 2);
		var top = Math.round((screen.height - height) / 2);
		popUpWin = open(URLStr, 'adsbxc_ss', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		popUpWin.opener.name="1A2B3C4D";
	}
	popUpWin = open(URLStr, 'adsbxc_ss', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	popUpWin.opener.name="1A2B3C4D";
}
            
function echeck() {
  var str = document.getElementById('email').value;
	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	
	if (str.indexOf(at)==-1){
	   alert(errMsg);
	   return false;
	}                
	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   alert(errMsg);
	   return false;
	}                
	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
	    alert(errMsg);
	    return false;
	}                
	if (str.indexOf(at,(lat+1))!=-1){
	    alert(errMsg);
	    return false;
	}                
	if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
	    alert(errMsg);
	    return false;
	}                
	if (str.indexOf(dot,(lat+2))==-1){
	    alert(errMsg);
	    return false;
	}                	
	if (str.indexOf(" ")!=-1){
	    alert(errMsg);
	    return false;
	}

	return true;		
}

function showMsg(msg) {
  var el = document.getElementById('msg');
  el.innerHTML = '<div id="warning"><table align="center" cellpadding="0" cellspacing="0" id="warningsTable">'+
  '<tr><td class="message_head">Message:</td>&nbsp;<td></td></tr>'+
  '<tr><td class="message_cont">'+msg+'</td><td>&nbsp;</td></tr><tr><td height="5"></td><td>&nbsp;</td></tr>'+
  '</table></div>';
  el.style.left = (document.getElementById("main_content").clientWidth - document.getElementById("warning").clientWidth) + 'px';
	el.style.top = (document.getElementById("main_content").offerHeight - document.getElementById("warning").clientHeight)/2 + 'px';
}
