 	function getObject(objectId) {
			if(document.getElementById && document.getElementById(objectId)) {
			return document.getElementById(objectId);
			} 
			  else if (document.all && document.all(objectId)) {
			      return document.all(objectId);
			} 
			  else if (document.layers && document.layers[objectId]) {
			return document.layers[objectId];
			} 
			  else {
			return false;
		    }
			
			}
			
		function showsub(n){
	      for(var i=1;i<=6;i++){
	  
		 if (i==n){
			getObject('tb'+i).style.display='';
	         }
			
			else {
			getObject('tb'+i).style.display='none';
			}
			}
            }
        
      function showsub2(i){
				getObject('tb'+i).style.display="";
			
            }
			
	 function showsub3(i){
				getObject('tb'+i).style.display="none";
			
            }		
			
 
 
 function   yuan1(obj,yin)   
  {   
  if(  yin.style.display=='' )
  {
    
       obj.className='y1'; 
     
  
  }
else
  { 
     
       obj.className='y2'; 
      
   }
        
  }   
  
  
    function   yuan2(obj,yin)   
  {   
  if(  yin.style.display=='' )
  {
    
       obj.className='y2'; 
   
  
  }
else
  { 
     
       obj.className='y1'; 
      
   }
  
        
  }  
  
  var  flag=false;  
function  DrawImage(ImgD){  
 var  image=new  Image();  
 image.src=ImgD.src;  
flag=true;  
 if(image.width>700){  
 ImgD.width=700;  
 ImgD.height=(image.height*700)/image.width;  
 }else{  
 ImgD.width=image.width;  
 ImgD.height=image.height;  
 }  
 ImgD.alt=image.width+"¡Á"+image.height +"px";  
 }  
 
 
 

 
 
 function dlform(theForm)
{
	

	if (theForm.username.value=="") {
    window.alert("Please enter your user name!");
    theForm.username.focus();
    return (false);
  }
  if (theForm.pwd.value=="") {
    window.alert("Please enter your password!");
    theForm.pwd.focus();
    return (false);
  }
 
  
}



function popup(theURL) { //v2.0
  window.open(theURL,'','width=320,height=100,toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no');
}


function msgform(theForm)
{
	
	
	
	if (theForm.UserID.value=="") {
    window.alert("Please enter your user id!");
    theForm.UserID.focus();
    return (false);
  }
  if (theForm.Password.value=="") {
    window.alert("Please enter Password!");
    theForm.Password.focus();
    return (false);
  }
  
  
   if(theForm.Password.value.length<6 || theForm.Password.value.length>20)
	 {
	   alert("Please enter the correct password 6-20£¡");
	   theForm.Password.focus();
	   return false;
	 }
	 
	 
   if (theForm.rePassword.value!=theForm.Password.value) {
    window.alert("Passwords do not match!");
    theForm.rePassword.focus();
    return (false);
  }
		
  
  if (theForm.Email.value=="") {
    window.alert("Please enter E_mail!");
    theForm.Email.focus();
    return (false);
  }
   if(theForm.Email.value.length!=0)
  {
    if (theForm.Email.value.charAt(0)=="." ||        
         theForm.Email.value.charAt(0)=="@"||       
         theForm.Email.value.indexOf('@', 0) == -1 || 
         theForm.Email.value.indexOf('.', 0) == -1 || 
        theForm.Email.value.lastIndexOf("@")==theForm.Email.value.length-1 || 
         theForm.Email.value.lastIndexOf(".")==theForm.Email.value.length-1)
     {
     alert("E_mail incorrect format£¡");
      theForm.Email.focus();
      return false;
      }
   }
  
  if (theForm.Name.value=="") {
    window.alert("Please enter Real Name!");
    theForm.Name.focus();
    return (false);
  }	
  

			  
  if (theForm.Telephone.value=="") {
    window.alert("Please enter Telephone!");
    theForm.Telephone.focus();
    return (false);
  }	
  
   if (theForm.Mobile.value=="") {
    window.alert("Please enter Mobile!");
    theForm.Mobile.focus();
    return (false);
  }	

  
	
}







function yyform(theForm)
{
	
	
	if (theForm.cousername.value=="") {
    window.alert("Please enter couser!");
    theForm.cousername.focus();
    return (false);
  }
	
	
	if (theForm.username.value=="") {
    window.alert("Please enter name!");
    theForm.username.focus();
    return (false);
  }
  if (theForm.tel.value=="") {
    window.alert("Please enter your Telephone!");
    theForm.tel.focus();
    return (false);
  }
  
  
   
  
  if (theForm.email.value=="") {
    window.alert("Please enter E_mail!");
    theForm.email.focus();
    return (false);
  }
   if(theForm.email.value.length!=0)
  {
    if (theForm.email.value.charAt(0)=="." ||        
         theForm.email.value.charAt(0)=="@"||       
         theForm.email.value.indexOf('@', 0) == -1 || 
         theForm.email.value.indexOf('.', 0) == -1 || 
        theForm.email.value.lastIndexOf("@")==theForm.email.value.length-1 || 
         theForm.email.value.lastIndexOf(".")==theForm.email.value.length-1)
     {
      alert("E_mail incorrect format£¡");
      theForm.email.focus();
      return false;
      }
   }
  
 
   if (theForm.validatecode.value=="") {
     window.alert("Please enter code!");
    theForm.validatecode.focus();
    return (false);
  }	

  
	
}



function lyform(theForm)
{
	
	
	
	if (theForm.username.value=="") {
    window.alert("Please enter your user name!");
    theForm.username.focus();
    return (false);
  }
  if (theForm.tel.value=="") {
    window.alert("Please enter your Telephone!");
    theForm.tel.focus();
    return (false);
  }
  
  
   
  
  if (theForm.email.value=="") {
    window.alert("Please enter E_mail!");
    theForm.email.focus();
    return (false);
  }
   if(theForm.email.value.length!=0)
  {
    if (theForm.email.value.charAt(0)=="." ||        
         theForm.email.value.charAt(0)=="@"||       
         theForm.email.value.indexOf('@', 0) == -1 || 
         theForm.email.value.indexOf('.', 0) == -1 || 
        theForm.email.value.lastIndexOf("@")==theForm.email.value.length-1 || 
         theForm.email.value.lastIndexOf(".")==theForm.email.value.length-1)
     {
      alert("E_mail incorrect format£¡");
      theForm.email.focus();
      return false;
      }
   }
  if (theForm.content.value=="") {
    window.alert("Please enter content!");
    theForm.content.focus();
    return (false);
  }	
 
   if (theForm.validatecode.value=="") {
    window.alert("Please enter code!");
    theForm.validatecode.focus();
    return (false);
  }	

  
	
}

 
