function verify(form1){
		if(form1.id.value==""){
			alert("You should enter a username");
			return false;
			form1.id.focus();
		}
		if(form1.pw.value==""){
			alert("You should enter a password");
			return false;
			form1.pw.focus();
		}

}

function resizeText(multiplier) {
  if (document.getElementById('det').style.fontSize == "") {
    document.getElementById('det').style.fontSize = "1.0em";
  }
	if((parseFloat(document.getElementById('det').style.fontSize)>=1)&&(multiplier==-1)){
		document.getElementById('det').style.fontSize = parseFloat(document.getElementById('det').style.fontSize) -0.2 + "em";
	}else{
		if((parseFloat(document.getElementById('det').style.fontSize)<=1.8)&&(multiplier==1)){
			document.getElementById('det').style.fontSize = parseFloat(document.getElementById('det').style.fontSize) +0.2 + "em";
		}
	}
}

function switchDIV(divname){	
var div1=divname;
var visi=document.getElementById(div1).style.display;
var key1=divname+'Key';
	if(visi=="none"){
		document.getElementById(div1).style.display='block';
		document.getElementById(key1).src='cms/img/up.png';
		visi="block";
	}else{
		document.getElementById(div1).style.display='none';
		document.getElementById(key1).src='cms/img/down.png';
		visi="none";
	}
}

function switchDIVplus(divname,c){
var div1=divname;
var divis=document.getElementById(div1).style.display;
var iconClass=c;
	switch (iconClass) {   
		case 0: 
			source0='img/up.gif';
			source1='img/down.gif';
			break;
		case 1: 
			source0='cms/img/treePlusW.png';
			source1='cms/img/treeMinusW.png';
			break;
		case 2: 
			source0='cms/img/treePlus.png';
			source1='cms/img/treeMinus.png';
			break;
		default:
			source0='cms/img/plus.png';
			source1='cms/img/minus.png';
		;
	}
//alert('divis='+divis);
var key1=divname+'Key';
	if(divis=="none"){
		document.getElementById(div1).style.display='block';
		document.getElementById(key1).src=source1;
		divis="block";
	}else{
		document.getElementById(div1).style.display='none';
		document.getElementById(key1).src=source0;
		divis="none";
	}
}

function verify_ped(srchForm){
	if((srchForm.titlekey.value=="") && (srchForm.AUTHOR.value=="") && (srchForm.PUBHOUSE.value=="") && (srchForm.desckey.value=="")){
		alert('<?php echo _SRCHVERIF;?>');
		srchForm.titlekey.focus();
		return false;
	}
}

