function view_div_detail(id) { 
					  
				 	if(id == 0){ document.getElementById('short').style.display = "none" ;
					             document.getElementById('detail').style.display = "block" ;
					}
					else{
							document.getElementById('short').style.display = "block" ;
					        document.getElementById('detail').style.display = "none" ;
					}  
					
		}
function NewWindow(mypage, myname, w, h, scrolla) { 
	
			 var winl = (screen.availWidth - w) / 2;
 			 var wint = (screen.availHeight - (h + 50) ) / 2;
			 winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scrolla+',resizable=0,toolbar=no,statusbar=no'
			 win = window.open(mypage, myname, winprops)
 } // NewWindow
	
 function MouseOver(row){
			row.style.cursor='pointer';
			//row.style.textDecoration='underline';
 }
 
 function MouseOut(row){
		 row.style.cursor='';
			//row.style.textDecoration='none';
 }
 
 function checkInsertUser(){ 
	      if(document.frmUser.userName.value == ""){
			 alert('Please. Enter Username');
			 document.frmUser.userName.focus() ;
			 return false ;
		  }
		  
		  if(document.frmUser.userPass.value == ""){
			 alert('Please. Enter Password');
			 document.frmUser.userPass.focus() ;
			  return false ;
		  }
		  
		  if(document.frmUser.verifyPass.value == ""){
			 alert('Please. Enter Verify Password');
			 document.frmUser.verifyPass.focus() ;
			  return false ;
		  }
		  
		  if((document.frmUser.userPass.value != "")   &&
			 (document.frmUser.verifyPass.value != "") &&
			 (document.frmUser.userPass.value != document.frmUser.verifyPass.value)){
			  alert('Please. The entered passwords do not match');
			  document.frmUser.emailUser.focus() ;
			  return false ;
		  }
		  
		  if(document.frmUser.emailUser.value == ""){
			 alert('Please. Enter Email');
			 document.frmUser.emailUser.focus() ;
			  return false ;
		  }
		  
		  if(document.frmUser.Introduce.value == ""){
			 alert('Please. Enter Introduce');
			 document.frmUser.Introduce.focus() ;
			  return false ;
		  }
		  alert(document.frmUser.emailFromAdmin.value);
	  return true ;
 }
 
 function gotopage(ipage) {     
	document.frm1.curpg.value = ipage ;
	document.frm1.submit();  
 }
 
 function view_under(id1,id2,id3,id4){
       document.getElementById(id1).style.display = "block" ;
	   document.getElementById(id2).style.display = "none" ;
	   document.getElementById(id3).style.display = "none" ;
	   document.getElementById(id4).style.display = "none" ;
 }

 function open2Window(theURL,winName,features) { 
 		 window.open(theURL,winName,features);
 }
 
function units_s(id1,id2){ 
	document.getElementById(id1).style.display="none" ;
	document.getElementById(id2).style.display="block" ;
	
}
function units_h(id){ 
	document.getElementById('a'+(id - 1)).style.display = "block" ;
	document.getElementById('a'+id).style.display = "none" ;
} 

function units_s_h(idx){	 															
		 //var s = stop1 ;  
		 for( i = 1 ; i <= 6 ; i++ ) { 
		   	  tmp = document.getElementById('a'+i).style;  
				  
				  if( i == idx ) 					       tmp.display = 'block' ;
				  else if(i == (idx - 1))				   tmp.display = 'none'  ;
				  else if((i % 2 == 0) && (i != idx)) 	   tmp.display = 'none'  ;
				  else if((i % 2 != 0) && (i != (idx - 1))) tmp.display = 'block'  ;
				  
		 } // for
} // units_s_h