<!--
function popwin1(htmlurl)
{var newwin=window.open(htmlurl,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=45,left=60,width=619,height=346");
return false;
}
function newspw(htmlurl)
{var newwin=window.open(htmlurl,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=45,left=60,width=476,height=320");
return false;
}
function popwindow(htmlurl)
{var newwin=window.open(htmlurl,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=1,left=1,width=400,height=260");
return false;
}
function popwin0(htmlurl,win,w,h)
{
var set="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=6,left=71,width="+w+",height="+h;
var newwin=window.open(htmlurl,win,set);
return false;
}
//-->
//判断cookie是否开启
var cookieEnabled=(navigator.cookieEnabled)? true : false
//如果浏览器不是ie4+或ns6+
if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled)
{ 
	document.cookie="testcookie"
	cookieEnabled=(document.cookie=="testcookie")? true : false
	document.cookie="" //erase dummy value4
}


function GetCookie(name)
{
     var arg=name+ "=";
     var alen=arg.length;
     var clen=document.cookie.length;
     var i=0;
     while (i<clen) {
       var j=i+alen;
       if(document.cookie.substring(i,j)
       ==arg)
       return getCookieVal(j);
       i=document.cookie.indexOf("",i)+1;
       if(i==0)break;
     }
     return null;
}

function getCookieVal(offset) {
     var endstr=document.cookie.indexOf
       (";",offset);
     if(endstr==-1) //没有指定其他元素
       endstr=document.cookie.length;
     return unescape(document.cookie.substring
       (offset,endstr));
   }

function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}

function Get()
{			
	if (cookieEnabled)
	{		
		var CookieArea = GetCookie('zz_area');
		//var CookieArea = "CNC";
		if (CookieArea == "CNC")
		{	
		document.getElementById('setarea').style.display='';				
		document.getElementById('loading').style.display='none';
			
			//this.location = "mycar.asp";
		}
		else
		{
        
		
		document.getElementById('loading').style.display='';				
		document.getElementById('setarea').style.display='none';
		//this.location = "index.htm";
		}
		
	}
}

//校验user的弹出窗口                                
function check_id_window(value){                                
	window.open("check_id.asp?username="+value,"",'toolbar=no,directories=no,scrollbars=0,resizable=1,status=no,menubar=0,width=250,height=100');                                
} 
