function checkcookie(){
    var cstr;
    var cookiename = "ccc";
    var cstr=document.cookie;
    
    if (cstr.indexOf(cookiename) != -1){
    	document.location = "1.htm";
    }else{
    	var msg = "Please Input password,dear american customer";
    	
    	if (prompt(msg,'')!=cookiename){
    		document.location.reload();
    	}else{
    		setcookie(cookiename);
    		document.location = "1.htm";
    	}
    }
    
    IE4=(document.all) ? 0:1
	if (IE4){
		return true;
	}
}

function setcookie(name){
    var cstr="";
    var now = new Date();
    cstr += "cookieName="+name;
    cstr += ";path=/";
    document.cookie = cstr;
    return true;
    //alert(cstr);
}



function checkcookie1(){
    var cstr1;
    var cookiename1 = "aaa";
    var cstr1=document.cookie;
    
    if (cstr1.indexOf(cookiename1) != -1){
    	document.location = "2.htm";
    }else{
    	var msg = "Please Input password, dear european customer";
    	
    	if (prompt(msg,'')!=cookiename1){
    		document.location.reload();
    	}else{
    		setcookie1(cookiename1);
    		document.location = "2.htm";
    	}
    }
    
    IE4=(document.all) ? 0:1
	if (IE4){
		return true;
	}
}

function setcookie1(name){
    var cstr1="";
    var now1= new Date();
    cstr1 += "cookieName1="+name;
    cstr1 += ";path=/";
    document.cookie = cstr1;
    return true;
    //alert(cstr1);
}


function checkcookie2(){
    var cstr2;
    var cookiename2 = "bbb";
    var cstr2=document.cookie;
    
    if (cstr2.indexOf(cookiename2) != -1){
    	document.location = "3.htm";
    }else{
    	var msg = "Please Input password, dear asian customer";
    	
    	if (prompt(msg,'')!=cookiename2){
    		document.location.reload();
    	}else{
    		setcookie2(cookiename2);
    		document.location = "3.htm";
    	}
    }
    
    IE4=(document.all) ? 0:1
	if (IE4){
		return true;
	}
}

function setcookie2(name){
    var cstr2="";
    var now2= new Date();
    cstr2 += "cookieName2="+name;
    cstr2 += ";path=/";
    document.cookie = cstr2;
    return true;
    //alert(cstr2);
}
