// JavaScript Document

<!--
<!-- hide contents from old browsers
bVer = parseInt(navigator.appVersion);

	if (bVer >= 3) {
		canDo = 1;
	}
	else{
		canDo = 0;
	}

preloadPictures()

function preloadPictures()

{
        picturesScreen = new Array(25);
     	
     	 no1on = new Image();		no1on.src = "lz_images/no1.gif";
     	 no1off = new Image();		no1off.src = "lz_images/no1.gif";

      	 no2on = new Image();		no2on.src = "lz_images/no2.gif";
      	 no2off = new Image();		no2off.src = "lz_images/no2.gif";
        
        no3on = new Image();		no3on.src = "lz_images/no3.gif";
        no3off = new Image();		no3off.src = "lz_images/no3.gif";
        
        no4on = new Image();		no4on.src = "lz_images/no4.gif";
        no4off = new Image();		no4off.src = "lz_images/no4.gif";
        
        no5on = new Image();		no5on.src = "lz_images/no5.gif";
        no5off = new Image();		no5off.src = "lz_images/no5.gif";
		
     	 no6on = new Image();		no6on.src = "lz_images/no6.gif";
     	 no6off = new Image();		no6off.src = "lz_images/no6.gif";

      	 no7on = new Image();		no7on.src = "lz_images/no7.gif";
      	 no7off = new Image();		no7off.src = "lz_images/no7.gif";
        
        no8on = new Image();		no8on.src = "lz_images/no8.gif";
        no8off = new Image();		no8off.src = "lz_images/no8.gif";
        
        no9on = new Image();		no9on.src = "lz_images/no9.gif";
        no9off = new Image();		no9off.src = "lz_images/no9.gif";
        
        no10on = new Image();		no10on.src = "lz_images/no10.gif";
        no10off = new Image();		no10off.src = "lz_images/no10.gif";
		
        no11on = new Image();		no11on.src = "lz_images/no11.gif";
        no11off = new Image();		no11off.src = "lz_images/no11.gif";
        
        no12on = new Image();		no12on.src = "lz_images/no12.gif";
        no12off = new Image();		no12off.src = "lz_images/no12.gif";
		
     	no13on = new Image();		no13on.src = "lz_images/no13.gif";
     	no13off = new Image();		no13off.src = "lz_images/no13.gif";

      	no14on = new Image();		no14on.src = "lz_images/no14.gif";
      	no14off = new Image();		no14off.src = "lz_images/no14.gif";
        
        no15on = new Image();		no15on.src = "lz_images/no15.gif";
        no15off = new Image();		no15off.src = "lz_images/no15.gif";
        
        no16on = new Image();		no16on.src = "lz_images/no16.gif";
        no16off = new Image();		no16off.src = "lz_images/no16.gif";
        
        no17on = new Image();		no17on.src = "lz_images/no17.gif";
        no17off = new Image();		no17off.src = "lz_images/no17.gif";
		
        no18on = new Image();		no18on.src = "lz_images/no18.gif";
        no18off = new Image();		no18off.src = "lz_images/no18.gif";
		
		no19on = new Image();		no19on.src = "lz_images/no19.gif";
     	no19off = new Image();		no19off.src = "lz_images/no19.gif";

      	no20on = new Image();		no20on.src = "lz_images/no20.gif";
      	no20off = new Image();		no20off.src = "lz_images/no20.gif";
        
        no21on = new Image();		no21on.src = "lz_images/no21.gif";
        no21off = new Image();		no21off.src = "lz_images/no21.gif";
        
        no22on = new Image();		no22on.src = "lz_images/no22.gif";
        no22off = new Image();		no22off.src = "lz_images/no22.gif";
        
        no23on = new Image();		no23on.src = "lz_images/no23.gif";
        no23off = new Image();		no23off.src = "lz_images/no23.gif";
		
        no24on = new Image();		no24on.src = "lz_images/no24.gif";
        no24off = new Image();		no24off.src = "lz_images/no24.gif";


     	
        for (var i = 0;i < 25; i++)    
			
        {

                picturesScreen[i]=new Image;              

                if (i<7)
				{ picturesScreen[i].src = "lz_images/store"+i+".gif"; }
				else if (i > 6 && i < 13)
				{ picturesScreen[i].src = "lz_images/vip"+i+".gif"; }  
				else if (i > 12 && i < 19)
				{picturesScreen[i].src = "lz_images/lev"+i+".gif"; }   
				else
				{picturesScreen[i].src = "lz_images/aqua"+i+".gif"; }      
        }

		


}


function middleRoll(which)     {
    if (canDo)
{   
	if (which<7)          
	{ document.images["store"].src=picturesScreen[which].src; }  
	else if (which > 6 && which < 13)
	{ document.images["vip"].src=picturesScreen[which].src; } 
	else if (which > 12 && which < 19)
	{ document.images["lev"].src=picturesScreen[which].src; }
	else
	{ document.images["aqua"].src=picturesScreen[which].src; }      
}

}
               

function img_act(imgName)      {
	if (canDo)
                {

                        imgOn = eval(imgName + "on.src");

                        document.images[imgName].src = imgOn;

                }
	}


function img_inact(imgName)         {
	if (canDo)
                {

                        imgOff = eval(imgName + "off.src");

                        document.images[imgName].src = imgOff;

                }
	}

// end hiding contents from old browsers -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
<!--
function requiredCheck(formobj){
	// Enter name of mandatory fields
	var fieldRequired = Array("company_name","email", "contact_person", "enquiry");
	// Enter field description to appear in the dialog box
	var fieldDescription = Array("Company Name","Email", "Contact Person", "Remarks");
	// dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].value == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
			case "password":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		if (emailCheck(document.form1.email.value)==false)
			{return false;}
		else if (radioCheck(document.form1.radio[1].value)==false)
			{return false;}
			else{return true;}
	}else{
		alert(alertMsg);
		return false;
	}
	
}

function emailCheck(str)
{
	var at="@";
	var dot=".";
	var lat=str.indexOf(at);
	var lstr=str.length;
	var ldot=str.indexOf(dot);
	if (str.indexOf(at)==-1){
	   alert("Invalid E-mail Address, please enter again.\n- e.g: xxx@xxxmail.com");
	   return false;
	}

	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   alert("Invalid E-mail Address, please enter again.\n- e.g: xxx@xxxmail.com");
	   return false;
	}

	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		alert("Invalid E-mail Address, please enter again.\n- e.g: xxx@xxxmail.com");
		return false;
	}

	 if (str.indexOf(at,(lat+1))!=-1){
		alert("Invalid E-mail Address, please enter again.\n- e.g: xxx@xxxmail.com");
		return false;
	 }

	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		alert("Invalid E-mail Address, please enter again.\n- e.g: xxx@xxxmail.com");
		return false;
	 }

	 if (str.indexOf(dot,(lat+2))==-1){
		alert("Invalid E-mail Address, please enter again.\n- e.g: xxx@xxxmail.com");
		return false;
	 }
	
	 if (str.indexOf(" ")!=-1){
		alert("Invalid E-mail Address, please enter again.\n- e.g: xxx@xxxmail.com");
		return false;
	 }

	 return true;					
}

// -->