// Copyright 2000-2001, Win-Media Software. All rights reserved. 

SiteURL = "http://www.win-media.com/";
//SiteURL = "file:///f:/wmsrd/";

function Heading(Text)
{
	document.writeln("<TR><TD class=heading>&nbsp;&nbsp;" + Text + "</TD></TR>");
	return true;
}

function Item(Text,Link)
{
        document.writeln("<TR><TD class=item onClick=window.location.href='" + SiteURL + Link + "' onMouseOver=this.style.background='#99CCFF' onMouseOut=this.style.background='#F5F5F5'><A href=" + SiteURL + Link + ">&nbsp;&nbsp;" + Text + "</A></TD></TR>");
	return true;
}

function Menu(Picture)
{

	document.writeln("<TABLE cellspacing=0 cellpadding=0 border=0 width=162>");
	document.writeln("<TR><TD valign=top width=162><IMG align=absmiddle src=" + SiteURL + "img/" + Picture + ".gif border=0 height=150 width=162></TD></TR>");

	Item("Home","index.htm");

	Heading("Products");
	Item("Amazing Dialer","amdialer/default.htm");
	Item("Amazing NetGrapher","netgrapher/default.htm");

	Heading("Downloads");
	Item("Downloads","download/download.htm");
	Item("Beta-versions","download/downloadbeta.htm");

	Heading("Support");
	Item("Forum","forum/default.asp");
	Item("Technical support","support/techsupport.htm");
	Item("Feedback","support/feedback.htm");
//	Item("Mailing list","support/mailinglist.htm");

	Heading("How to buy");
	Item("Register now!","register/register.htm");

	Heading("Services");
	Item("Special offer for ISP","services/isp_offer.htm");
	Item("Custom Software<BR>&nbsp;&nbsp;Development ","services/custom_dev.htm");

	document.writeln("</TABLE>");
	return true;
}

function OrderForm()
{
	qty = document.regform.quantity.value;
	lang = document.regform.language.value;

	if (qty>0)
	{

		if (qty == 1) ID = 137307;
			else if(qty < 10) ID = 138817;
			else if(qty < 50) ID = 138818;
			else if(qty < 100) ID = 138819;
			else ID = 138820;

		return window.location="https://secure.element5.com/register.html?productid="+ID+"&language="+lang+"&license="+qty;

	}
	else
	{

		document.regform.quantity.value = 1;
		return alert("Please enter a quantity");

	}
}