// JavaScript Document
	function addToCart(tmpProductId,tmpProdPrice,tmpProdColor,tmpProdDisc)
	{
		//alert(1);
		var tmpPId		= tmpProductId;
		var tmpPriceId	= tmpProdPrice;
		var tmpColorId	= tmpProdColor;
		var tmpDisc		= tmpProdDisc;
		
		window.location.href = "shopping-cart/addtocart.php?prodId="+tmpPId+"&price="+tmpPriceId+"&color="+tmpColorId+"&discount="+tmpDisc;
	}
	
function verification(frm)
{
     if(frm.txtNewsName.value == "")
   {
		alert("Please Enter your Name");
		frm.txtNewsName.focus();  
	    return false;
		
	}	
		
	if (frm.txtNewsEmail.value == "")
	 {
	   alert("Please Enter your Email");
	   frm.txtNewsEmail.focus();
		return false;
	}	
	else if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(frm.txtNewsEmail.value))
			return (true);
		else
		{
			alert("Invalid E-mail Address! Please re-enter.");
			return (false);
		}
	
	return (true);
}
	
	
function mycenteralpopwinVHS(fname,width,height)
{
	var file
	var sWidth	= 200
	var sHeight = 200
	
	if(width.length > 0){
	sWidth = width;
	}
	else{
	width =100;
	}
	
	if(height.length > 0){
	sHeight = height;
	}
	else{
	height =100;
	}
	
	file = fname
	file = file	
	
	var wintop  =window.screen.availHeight;
	var winleft =window.screen.availWidth;
	wintop  =(wintop/2) -(height/2)
	winleft =(winleft/2) -(width/2)
	//wintop  = 0
	//winleft = 0
	
	if ( sWidth > window.screen.availWidth )
		{ sWidth = window.screen.availWidth; }
	if (sHeight > window.screen.availHeight )
		{ sHeight = window.screen.availHeight; }
	if ( parseInt(sWidth) < width )
		{ sWidth = width; }
	if ( parseInt(sHeight) < height )
		{ sHeight = height; }
	
	if ( navigator.appName == "Microsoft Internet Explorer" )
		{ window.open(file, "_blank", "status=no, scrollbars=yes, toolbar=no, resizable=yes,location=no, menubar=no, top=" + wintop + ", left= "+ winleft +", height=" + sHeight + ", width=" + sWidth); 
		}
	if ( navigator.appName == "Netscape" ) 
		{ 
		window.open(file,"_blank","scrollbars=yes,resizable=yes,alwaysRaised,dependant,innerheight=" + sHeight + ",innerwidth=" + sWidth); 		 
		//window.open(file,"_blank","alwaysRaised,dependant,scrollbars=yes,innerheight=" + sHeight + ",innerwidth=" + sWidth); 
		}
}
	
	
