// JavaScript Document


function curtipopupsupplier(URL)
{
  window.open(URL,"","left=10,top=10,height=410,width=680,resizable=yes,scrollbars=yes, menubar=yes");
}



function curtipopup(URL)
{
  window.open(URL,"","left=10,top=10,height=600,width=820,resizable=yes,scrollbars=yes, menubar=yes");
}

function curtipopup2(URL)
{
  window.open(URL,"","left=10,top=10,height=600,width=600,resizable=yes,scrollbars=yes, menubar=yes");
}

//for checker

function validator(theform)
{

 if (form1.name.value.length < 3)
  {
    alert("Please fill in your name");
    theform.name.focus();
    return (false);
  }
  
  if (form1.email.value.length < 3)
  {
    alert("Please fill in your e-mail address");
    theform.email.focus();
    return (false);
  }
  //---------------------------
 
  
  
  return (true);
}


//------------------------------------------------------------------------------------------------
// name1 email1  company1 position1 tel1 mobile1  fax1 address1
//for checker

function validatorMOVIEpack(theform)
{

 if (form1.name1.value.length < 3)
  {
    alert("Please fill in your name");
    theform.name1.focus();
    return (false);
  }
 
  if (form1.email1.value.length < 3)
  {
    alert("Please fill in your email");
    theform.email1.focus();
    return (false);
  }
  
    if (form1.company1.value.length < 3)
  {
    alert("Please fill in your company");
    theform.company1.focus();
    return (false);
  }
  
  
 if (form1.position1.value.length < 3)
  {
    alert("Please fill in your position");
    theform.position1.focus();
    return (false);
  }
  
   if (form1.tel1.value.length < 3)
  {
    alert("Please fill in your phone number");
    theform.tel1.focus();
    return (false);
  }
  
   if (form1.mobile1.value.length < 3)
  {
    alert("Please fill in your mobile number");
    theform.mobile1.focus();
    return (false);
  }
  
   if (form1.fax1.value.length < 3)
  {
    alert("Please fill in your fax number");
    theform.fax1.focus();
    return (false);
  }
  
   if (form1.address1.value.length < 3)
  {
    alert("Please fill in your address");
    theform.address1.focus();
    return (false);
  }
  
 
  //---------------------------
 
  
  
  return (true);
}


//------------------------------------------------------------------------------------------------
// name1 email1  company1 position1 tel1 mobile1  fax1 address1
//for checker

function validatorMOVIEwire(theform)
{

 if (form1.name1.value.length < 3)
  {
    alert("Please fill in your name");
    theform.name1.focus();
    return (false);
  }
 
  if (form1.email1.value.length < 3)
  {
    alert("Please fill in your email");
    theform.email1.focus();
    return (false);
  }
  
    if (form1.company1.value.length < 3)
  {
    alert("Please fill in your company");
    theform.company1.focus();
    return (false);
  }
  
  
 if (form1.position1.value.length < 3)
  {
    alert("Please fill in your position");
    theform.position1.focus();
    return (false);
  }
  
   if (form1.tel1.value.length < 3)
  {
    alert("Please fill in your phone number");
    theform.tel1.focus();
    return (false);
  }
  
   if (form1.mobile1.value.length < 3)
  {
    alert("Please fill in your mobile number");
    theform.mobile1.focus();
    return (false);
  }
  
   if (form1.fax1.value.length < 3)
  {
    alert("Please fill in your fax number");
    theform.fax1.focus();
    return (false);
  }
  
   if (form1.address1.value.length < 3)
  {
    alert("Please fill in your address");
    theform.address1.focus();
    return (false);
  }
  
 
  //---------------------------
 
  
  
  return (true);
}








