function askUnderConstructionPassword(password){
	var okflag = askPSGet_Cookie("password");
	var cancelFlag = false;
	if (okflag != "ok"){
		var input = prompt("האתר תחת בנייה, הכנס סיסמת כניסה","");
		if (input == null) cancelFlag = true;
		while(password != input && !cancelFlag){
			alert("הססמא שגוייה");
			input = prompt("האתר תחת בנייה, הכנס סיסמת כניסה","");
			if (input == null) cancelFlag = true;
		}
	}
	if (cancelFlag == false){
		var today = new Date(); 
		var zero_date = new Date(0,0,0); 
		today.setTime(today.getTime() - zero_date.getTime()); 
		var cookie_expire_date = new Date(today.getTime() + (8 * 7 * 86400000)); 
		askPSSet_Cookie("password","ok",cookie_expire_date);
	}else{
		window.document.write("אנא המתן ...<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>");
		window.location = "http://www.ntt.co.il/misc/errorpages/notallowed.html";
	}
}

function askPSGet_Cookie(name) { 
   var start = document.cookie.indexOf(name+"="); 
   var len = start+name.length+1; 
   if ((!start) && (name != document.cookie.substring(0,name.length))) return null; 
   if (start == -1) return null; 
   var end = document.cookie.indexOf(";",len); 
   if (end == -1) end = document.cookie.length; 
   return unescape(document.cookie.substring(len,end)); 
} 

function askPSSet_Cookie(name,value,expires,path,domain,secure) { 
    var cookieString = name + "=" +escape(value) + 
       ( (expires) ? ";expires=" + expires.toGMTString() : "") + 
       ( (path) ? ";path=" + path : "") + 
       ( (domain) ? ";domain=" + domain : "") + 
       ( (secure) ? ";secure" : ""); 
    document.cookie = cookieString; 
} 

function askPSDelete_Cookie(name,path,domain) { 
   if (Get_Cookie(name)) document.cookie = name + "=" + 
      ( (path) ? ";path=" + path : "") + 
      ( (domain) ? ";domain=" + domain : "") + 
      ";expires=Thu, 01-Jan-70 00:00:01 GMT"; 
} 

