	function showStore()
	{
		alert('Store is currently not available we apologize for the inconvenience. Please check back soon.');
		
	}	
	
	function redirect(page)
	{
		document.location.href = page;
	}
	
	function openWindow(loc, height, width)
	{
		window.open(loc,'',"scrollbars=no,menubar=no,height=" + height + ",width=" + width + ",resizable=no,toolbar=no,location=no,status=no");
	}
	

	function redirectPartner()
	{
		redirect("contact.php?subject=Partnership Inquiry");
	}
	
	function requestQuote(prodName)
	{
		
		if (prodName == "vgconnect_xprs")
			redirect ("request_quote.php?subject=VoiceGear Connect Express Edition");
		else if (prodName == "vgconnect_std")
			redirect ("request_quote.php?subject=VoiceGear Connect Standard Edition");
		else if (prodName == "vgconnect_ent")
			redirect ("request_quote.php?subject=VoiceGear Connect Enterprise Edition");
		else if (prodName == "gateway_s")
			redirect ("request_quote.php?subject=S-Series Media Gateway");
		else if (prodName == "gateway_sb")
			redirect ("request_quote.php?subject=SB-Series Media Gateway");
		else if (prodName == "gatekeeper_sk")
			redirect ("request_quote.php?subject=SK-Series H.323 Gatekeeper");
		else if (prodName == "proxy_svr")
			redirect ("request_quote.php?subject=SVR-Series SIP Proxy");
		else if (prodName == "skybridge")
			redirect ("request_quote.php?subject=VoiceGear SkyBridge");
	}

	function requestDemo(prodName)
	{
		
		if (prodName == "vgconnect_xprs")
			redirect ("request_demo.php?subject=VoiceGear Connect Express Edition");
		else if (prodName == "vgconnect_std")
			redirect ("request_demo.php?subject=VoiceGear Connect Standard Edition");
		else if (prodName == "vgconnect_ent")
			redirect ("request_demo.php?subject=VoiceGear Connect Enterprise Edition");
		else if (prodName == "skybridge")
			redirect ("request_demo.php?subject=VoiceGear SkyBridge");
	}
	
	function generateNumber (id, hidden)
	{
		document.getElementById(id).innerHTML = Math.floor(Math.random()*101);
		document.getElementById(hidden).value = document.getElementById(id).innerHTML;

	}

	function validateNumber (form, id, number)
	{
		if (document.getElementById(id).innerHTML == number)
		{
			document.getElementById(form).submit();
		}
		else
		{
			alert ('Submit failed');
		}
	}

