function showhide ( obj ) {	
		obj = document.getElementById ( obj ) 
	if(obj!=null){
		if ( obj.style.display == 'none' ) {
			obj.style.display = 'block' 
			
		} else {
			obj.style.display = 'none'
            //toogleShow(false);
		}
	 }
	}
	
function closeAll(){
	for ( i = 1 ; i < 100 ; i ++ ) {
		
			if ( document.getElementById("sid" + i ) != null ) {									
					eval ( "sid" + i ).style.display = "none"		
				}
			if ( document.getElementById("id" + i ) != null ) {				
					 eval ( "id" + i ).style.display = "none" 					
			}
			
		}
	}

function doSubmit(frm){
	 if ( ( frm.domain.value == " " ) || ( frm.domain.value.length < 2 ) )
  {
    alert("Ten truy nhap phai co it  nhat 2 ky tu")
    frm.domain.focus()
    return false
  }
  n = frm.domain.value.length;
  for ( i = 0; i < n; i++ )
    if ( !( ( ( frm.domain.value.charAt(i) >= '0' ) &&
              ( frm.domain.value.charAt(i) <= '9' ) ) ||
              ( ( frm.domain.value.charAt(i) >= 'a' ) &&
              ( frm.domain.value.charAt(i) <= 'z' ) ) ||
              ( ( frm.domain.value.charAt(i) >= 'A' ) &&
              ( frm.domain.value.charAt(i) <= 'Z' ) ) ||
              ( frm.domain.value.charAt(i) == '-' )||
              ( frm.domain.value.charAt(i) == '.' )||
                          ( frm.domain.value.charAt(i) == '_' )
                          ) )
    {
      alert("Domainname phai bao gom cac ky tu  alphabet va khong duoc co ky tu trong");
      frm.domain.focus()
	  return false
	}
	  
frm.submit()
tbl='<table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">' +
' <tr><td height=133><div align=center><img src="http://images.host100gb.com/progress.gif">'+
'<br>Xin chờ trong giây lát </div></td></tr></table>'
window.parent["dsearch"].innerHTML =tbl

}
function NewWindow(mypage)
	{ 
	window.open(mypage,"","staus=yes,toolbar=no,scrollbars=yes");
	}		
