setInterval("window.status='SureM China － 连接全球的国际SMS服务'",30);

// Center POPUP
var popUpWin=0;
function popUpWindow(URLStr, width, height, scrolls)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
    var iMyWidth;
	var iMyHeight;
	iMyWidth = (window.screen.width/2) - (width/2 + 10); 
	iMyHeight = (window.screen.height/2) - (height/2 + 50); 
  
  if (scrolls != "yes") { scolls = "no"; }
  
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scrolls+',resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+iMyWidth+', top='+iMyHeight+',screenX='+iMyWidth+',screenY='+iMyHeight+'');
}

function close_popUp() {
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  } 
}

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else {document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

function setCookie(name, value) { 
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + 365);
	todayDate.setHours(0,0,0);
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() 
}

function getCookie(name){

	var nameOfCookie = name + "=";

	var x = 0;

	while ( x <= document.cookie.length ){
		var y = (x+nameOfCookie.length);
		
		if ( document.cookie.substring( x, y ) == nameOfCookie ) {
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
					endOfCookie = document.cookie.length;
			return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		
		x = document.cookie.indexOf( " ", x ) + 1;

		if ( x == 0 )
			break;
	}

	return "";
}

