 
function popup_image(theURL) { //v2.0
   window.open(theURL,'show_image','toolbar=No,menubar=No,location=No,scrollbars=yes,resizable=No,status=No,width=100,height=100,left=250,top=175').focus();
}

function popup_setofcritiria(theURL) { //v2.0
window.open(theURL,'setting_popup','toolbar=No,menubar=No,location=No,scrollbars=yes,resizable=No,status=No,width=500,height=500,left=100,top=100').focus();
}
 
function popup_order(theURL) { //v2.0
window.open(theURL,'testimonial_popup','toolbar=No,menubar=No,location=No,scrollbars=yes,resizable=No,status=No,width=840,height=600,left=100,top=100').focus();
}

function popup_maillinklist(theURL) { //v2.0
    window.open(theURL,'testimonial_popup','toolbar=No,menubar=No,location=No,scrollbars=yes,resizable=Yes,status=No,width=550,height=600,left=100,top=100').focus();
 }

function popup_viewproduct_picture(theURL) { //v2.0
     window.open(theURL,'viewimage_popup','toolbar=No,menubar=No,location=No,scrollbars=yes,resizable=Yes,status=No,width=250,height=300,left=100,top=100').focus();
 }

 function popup_member(theURL) { //v2.0
  window.open(theURL,'setting_popup','toolbar=No,menubar=No,location=No,scrollbars=yes,resizable=No,status=No,width=600,height=650,left=100,top=100').focus();
}


function popup_newproduct(theURL) { //v2.0
window.open(theURL,'setting_popup','toolbar=No,menubar=No,location=No,scrollbars=yes,resizable=No,status=No,width=700,height=750,left=100,top=100').focus();
}

 
 
function check_search(){
	var dc=document.form_search;
     if(dc.productgroup_search.value==""){
       alert('Please Select Product Cataloge');
       dc.productgroup.focus();
	   return false;
	}
   
	if(dc.search.value==""){
       alert('Please Input Keyword');
	   dc.search.focus();
	   return false;

	}
//alert(dc.productgroup_search.value);
	if(dc.productgroup_search.value=="g1"){
 	   window.open('http://www.google.com/search?q='+dc.search.value,'search_popup','toolbar=Yes,menubar=Yes,location=Yes,scrollbars=yes,resizable=Yes,status=Yes').focus();
       return false;
	}


}

 function check_login_admin(){
		var dc=document.login_form;
		message ="";
 		if(dc.user_login.value==""){
		   message +="\n ! Please Input Username E-Mail Address ";
		}
        if(dc.user_pwd.value==""){
		   message +="\n ! Please Input Password ";
		}
        
		pcode=dc.pcode.value;
 		if(dc.confirm_code.value != pcode){
		   message +="\n ! Please Check Security Code  ";
		}

	 if(message !=""){
			   alert(message);
			      return false;
			   }else{
 				 return true; 
			   }
  }




function Conf(object,title) {
		if (confirm(title) ==true) {
		return true;
		}
		return false;
}

 

/**  Form member **/ 
function check_number(ch){
	var len, digit;
	if(ch == " "){ 
		return false;
		len=0;
	}else{
		len = ch.length;
	}
for(var i=0 ; i<len ; i++){
   digit = ch.charAt(i)
if(digit >="0" && digit <="9"){
 
 }else{
    return false; 
   } 
} 
return true;
}

function g(namex){	
	if (document.getElementById){
		return document.getElementById(namex);	
	}else if (document.all){		
	        return document.all[namex];	
	}else{ 		
      	return null;
	}
	}

 
 	function chk_number() {
		e_k=event.keyCode;
		if (((e_k < 48) || (e_k > 57)) && e_k != 46 && e_k != 45 && e_k != 44 && e_k !=13){
 		event.returnValue = false; 
        return false; }
	} 
 
  
 
 


  