var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==1||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 disableselect(e){
return false
}
function reEnable(){
return true
}
//document.onselectstart=new Function ("return false")
if (window.sidebar){
//document.onmousedown=disableselect
//document.onclick=reEnable
}

function formCheck(){

	// Check form so that the visitor will enter all necessary data.

	if (document.diary.post_name.value == "") 
	{
		alert("Please insert your name.");
		document.diary.post_name.focus();
		return false;
	} 

	if (document.diary.post_comment.value == "")
	{
		alert("Please insert your comment.");
		document.diary.post_comment.focus();
		return false;
	}
	
	if (document.diary.post_email.value != "")
	{
		 var email=document.diary.post_email.value;
		 if (email.indexOf(' ')==-1 
			  && 0<email.indexOf('@')
			  && email.indexOf('@')+1 < email.length
		 ) return true;
		 else alert ("Please insert your email.")
		 return false;
	}

	if (document.diary.keystring.value == "")
	{
		alert("Please insert code number.");
		document.diary.keystring.focus();
		return false;
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function hidestatus(){
window.status='Welocme to diaryclub.com.'
return true
}

/*setInterval("hidestatus()",1);

if (document.layers)
document.captureEvents(Event.MOUSEOVER || Event.MOUSEOUT || Event.MOUSECLICK)

document.onmouseover=hidestatus
document.onmouseout=hidestatus
*/