
 /* function checking()
  {
	var checkbox_choices = 0;
	for (counter = 0; counter < shoping.check[].length; counter++)
	{
	   if (checkbox_form.checkbox[counter].checked)
		{
		checkbox_choices = checkbox_choices + 1;
		}
	}
	if(checkbox_choices>0)
	  {
		return true;
	  }
	else
	  {
		alert("Please select the product");
		return false;
	  }

  }*/

function checkcontactus()
  {
   if(document.contact.Name.value=="" || document.contact.Address.value=="" || document.contact.City.value=="" || document.contact.State.value=="" || document.contact.PostCode.value=="" || document.contact.Phone.value=="")
	{
		alert("Please Enter Your Name/Address/City/State/Phone/PostCode!");
		document.contact.Name.focus();
		return false;
	}
	
	
	if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(contact.Email.value))
	   {   
	   }
    else
       {
		   alert("Invalid E-mail Address ! Please Re-Enter ");
		   document.contact.Email.focus();
		   return (false);
	   }
  }

  function checkall()
  {
   
    if(document.order.Name.value=="" || document.order.Address.value=="" || document.order.City.value=="" || document.order.State.value=="" || document.order.PostCode.value=="" || document.order.Phone.value=="")
	{
		alert("Please Enter Your Name/Address/City/State/Phone/PostCode!");
		document.order.Name.focus();
		return false;
	}
  
	if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(order.Email.value))
	   {   
	   }
    else
       {
		   alert("Invalid E-mail Address ! Please Re-Enter ");
		   document.order.Email.focus();
		   return (false);
	   }
  }

var aySound = new Array();
aySound[0] = "laser.wav";

// DO NOT edit below this line
document.write('<BGSOUND ID="auIEContainer">')
IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0;
NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0;
ver4 = IE||NS? 1:0;
onload=auPreload;

function auPreload() {
if (!ver4) return;
if (NS) auEmb = new Layer(0,window);
else {
Str = "<DIV ID='auEmb' STYLE='position:absolute;'></DIV>";
document.body.insertAdjacentHTML("BeforeEnd",Str);
}
var Str = '';
for (i=0;i<aySound.length;i++)
Str += "<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>"
if (IE) auEmb.innerHTML = Str;
else {
auEmb.document.open();
auEmb.document.write(Str);
auEmb.document.close();
}
auCon = IE? document.all.auIEContainer:auEmb;
auCon.control = auCtrl;
}
function auCtrl(whSound,play) {
if (IE) this.src = play? aySound[whSound]:'';
else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"))
}
function playSound(whSound) { if (window.auCon) auCon.control(whSound,true); }
function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }

function validatenewsletter()
    {
    if(document.newsletter.fname.value=="")
        {
        alert("Please enter your name");
        document.newsletter.fname.focus();
        return false;
        }
    if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(newsletter.email.value))
	   {   
	   }
    else
       {
		   alert("Invalid E-mail Address ! Please Re-Enter ");
		   document.newsletter.email.focus();
		   return false;
	   }
    }
    
function viewdetail(Name,catId,id)
    {
    window.location='index-inc-categoryproduct-detail-detail-cat_id-'+catId+'-id-'+id+'-prod_name-'+Name+'.html';
    //window.location='index.php?inc=categoryproduct&catagoryid='+catId+'&id='+id+'&detail=detail';
    }    
function viewdetail_url(Name,catId,id)
    {
    window.location='index.php?inc=categoryproduct&detail=detail&catagoryid='+catId+'&id='+id;
    //window.location='index.php?inc=categoryproduct&catagoryid='+catId+'&id='+id+'&detail=detail';
    }    
    
function functionoption()
    {
    if(document.frmCheckout.payment_option[0].checked)
        {
        document.frmCheckout.txtCCNumber.disabled=true;
        document.frmCheckout.ddlCardType.disabled=true;
        document.frmCheckout.txtCCName.disabled=true;
        document.frmCheckout.ddlExpiryMonth.disabled=true;
        document.frmCheckout.ddlExpiryYear.disabled=true;
        }
    if(document.frmCheckout.payment_option[1].checked)  
        {
         document.frmCheckout.txtCCNumber.disabled=false;
        document.frmCheckout.ddlCardType.disabled=false;
        document.frmCheckout.txtCCName.disabled=false;
        document.frmCheckout.ddlExpiryMonth.disabled=false;
        document.frmCheckout.ddlExpiryYear.disabled=false;

        }
    }        