function HideAll()
{
 products.style.visibility="hidden";
 support.style.visibility="hidden";
 company.style.visibility="hidden";
 downloads.style.visibility="hidden"; 
}
function HideSmall()
{ 
 products2.style.visibility="hidden";
 company2.style.visibility="hidden";
 order1.style.visibility="hidden";
}

function ShowMenu(type_menu)
{
  HideAll();
  type_menu.style.visibility="visible";
  
}
function HL_OFF(type_menu)
{
  type_menu.style.backgroundColor="#003366";
  type_menu.style.color="#ffffff";
}
function HL_ON(type_menu)
{
  type_menu.style.backgroundColor="#a0c9f1";
  type_menu.style.color="#003366";  
}
function HL_TEXTON(type_menu)
{
  type_menu.style.color="#ffffff";  
}
function HL_TEXTOFF(type_menu)
{
  type_menu.style.color="#003366";  
}

function HL_OFF_html(type_menu)
{
  type_menu.style.backgroundColor="#d7d7d7";
}

function HL_ON_html(type_menu)
{
  type_menu.style.backgroundColor="#cccccc";
}

function purchase(lang)
{
	var wnd;
	var programm=1; //HTMLtoRTF Converter Pro
	var currency=0; //USD
	var S="";	
	
	programm=window.document.formBuy.product.value;	
	if (lang!=3)
		currency=window.document.formBuy.currency.value;
	else
		currency=1;

	//Regsoft
	if (currency==0)
	{
		//1 - HTMLtoRTF Converter Pro
		if (programm==1)
			S="http://www.regsoft.net/purchase.php3?productid=60867";
		//2 - HTMLtoRTF Converter
		else if (programm==2)
			S="http://www.regsoft.net/purchase.php3?productid=56473";
		//3 - RTF to XHTML Converter
		else if (programm==3)
			S="http://www.regsoft.net/purchase.php3?productid=69887";
		//4 - PDF Metamorphosis
		else if (programm==4)
			S="http://www.regsoft.net/purchase.php3?productid=69311";
		//5 - HTML-to-RTF DLL - 1 Developer License
		else if (programm==5)		
			S="http://www.regsoft.net/purchase.php3?productid=66746";
        //6 - HTML-to-RTF DLL - 4 Developers License
		else if (programm==6)
			S="http://www.regsoft.net/purchase.php3?productid=68868";		
		//7 - HTML-to-RTF DLL - Site License
		else if (programm==7)
			S="http://www.regsoft.net/purchase.php3?productid=68113";
		//8 - HTML-to-RTF DLL - Source Code
        else if (programm==8) 
			S="http://www.regsoft.net/purchase.php3?productid=71478";		
		//9 - HTML-to-RTF Pro DLL - 1 Developer License
		else if (programm==9)
			S="http://www.regsoft.net/purchase.php3?productid=69655";
		//10 - HTML-to-RTF Pro DLL - 4 Developers License
		else if (programm==10)
			S="http://www.regsoft.net/purchase.php3?productid=69656";
		//11 - HTML-to-RTF Pro DLL - Site license
		else if (programm==11)
			S="http://www.regsoft.net/purchase.php3?productid=69657";
		//12 - HTML-to-RTF Pro DLL - Source Code
		else if (programm==12)
			S="http://www.regsoft.net/purchase.php3?productid=68238";		
		//13 - RTF-to-HTML DLL - 1 Developer License
		else if (programm==13)
			S="http://www.regsoft.net/purchase.php3?productid=71038";
		//14 - RTF-to-HTML DLL - 4 Developers License
		else if (programm==14)
			S="http://www.regsoft.net/purchase.php3?productid=71039";
		//15 - RTF-to-HTML DLL - Site License
		else if (programm==15)
			S="http://www.regsoft.net/purchase.php3?productid=71040";
		//16 - RTF-to-HTML DLL - Source Code
		else if (programm==16)
			S="http://www.regsoft.net/purchase.php3?productid=71479";
		//17 - RTF-to-HTML DLL + HTML-to-RTF Pro DLL - 1 Developer License
		else if (programm==17)
			S="http://www.regsoft.net/purchase.php3?productid=72896";
		//18 - RTF-to-HTML DLL + HTML-to-RTF Pro DLL - 4 Developers License
		else if (programm==18)
			S="http://www.regsoft.net/purchase.php3?productid=72897";
		//19 - RTF-to-HTML DLL + HTML-to-RTF Pro DLL - Site License
		else if (programm==19)
			S="http://www.regsoft.net/purchase.php3?productid=72898";		
		//20 - SSDocument Converter - 1 Developer License
		else if (programm==20)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001870]=1&affiliateid=200000958";
		//21 - SSDocument Converter - 4 Developers License
		else if (programm==21)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001871]=1&affiliateid=200000958";
		//22 - SSDocument Converter - Site License
        else if (programm==22)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001872]=1&affiliateid=200000958";
        //23 - SSImage Converter - 1 Developer License
		else if (programm==23)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001883]=1&affiliateid=200000958";
		//24 - SSImage Converter - 4 Developers License
		else if (programm==24)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001884]=1&affiliateid=200000958";
		//25 - SSImage Converter - Site License
        else if (programm==25)       
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001885]=1&affiliateid=200000958";		
		//26 - Convertisseur Pro HTML vers RTF
		else if (programm==26)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300015902]=1&languageid=6&currencies=EUR&affiliateid=74795";
		else
			alert("Please, select product!");
	}
	else	//ShareIt
	{
		//1 - HTMLtoRTF Converter Pro
		if (programm==1)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[187662]=1&DELIVERY[187662]=EML&languageid=1&currencies=EUR";
		//2 - HTMLtoRTF Converter
		else if (programm==2)
		{
			if (lang==3)
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[187658]=1&DELIVERY[187658]=EML&languageid=1&currencies=EUR&affiliateid=74795";
			else
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[187658]=1&DELIVERY[187658]=EML&languageid=1&currencies=EUR";
		}
		//3 - RTF to XHTML Converter
		else if (programm==3)
		{
			if (lang==3)
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[219560]=1&currencies=EUR&affiliateid=74795";
			else
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[219560]=1&currencies=EUR";
		}
		//4 - PDF Metamorphosis
		else if (programm==4)
		{
			if (lang==3)
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[216099]=1&DELIVERY[216099]=EML&languageid=1&currencies=EUR&affiliateid=74795";
			else
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[216099]=1&DELIVERY[216099]=EML&languageid=1&currencies=EUR";
		}
		//5 - HTML-to-RTF DLL - 1 Developer License
		else if (programm==5)		
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[210905]=1&currencies=USD_EUR";
        //6 - HTML-to-RTF DLL - 4 Developers License
		else if (programm==6)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[211115]=1&currencies=USD_EUR";
		//7 - HTML-to-RTF DLL - Site License
		else if (programm==7)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[211118]=1&currencies=USD_EUR";
		//8 - HTML-to-RTF DLL - Source Code
        else if (programm==8) 
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[211119]=1&currencies=USD_EUR";
		//9 - HTML-to-RTF Pro DLL - 1 Developer License
		else if (programm==9)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[217890]=1&currencies=USD_EUR";
		//10 - HTML-to-RTF Pro DLL - 4 Developers License
		else if (programm==10)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[217891]=1&currencies=USD_EUR";
		//11 - HTML-to-RTF Pro DLL - Site license
		else if (programm==11)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[217892]=1&currencies=USD_EUR";
		//12 - HTML-to-RTF Pro DLL - Source Code
		else if (programm==12)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300018555]=1&currencies=USD_EUR";
		//13 - RTF-to-HTML DLL - 1 Developer License
		else if (programm==13)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300003292]=1&currencies=USD_EUR";
		//14 - RTF-to-HTML DLL - 4 Developers License
		else if (programm==14)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300003294]=1&currencies=USD_EUR";
		//15 - RTF-to-HTML DLL - Site License
		else if (programm==15)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300003295]=1&currencies=USD_EUR";
		//16 - RTF-to-HTML DLL - Source Code
		else if (programm==16)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300020319]=1&currencies=USD_EUR";
		//17 - RTF-to-HTML DLL + HTML-to-RTF Pro DLL - 1 Developer License
		else if (programm==17)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300018556]=1&currencies=USD_EUR";
		//18 - RTF-to-HTML DLL + HTML-to-RTF Pro DLL - 4 Developers License
		else if (programm==18)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300018557]=1&currencies=USD_EUR";
		//19 - RTF-to-HTML DLL + HTML-to-RTF Pro DLL - Site License
		else if (programm==19)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300018558]=1&currencies=USD_EUR";
		//20 - SSDocument Converter - 1 Developer License
		else if (programm==20)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001870]=1&affiliateid=200000958";
		//21 - SSDocument Converter - 4 Developers License
		else if (programm==21)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001871]=1&affiliateid=200000958";		
		//22 - SSDocument Converter - Site License
        else if (programm==22)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001872]=1&affiliateid=200000958";
        //23 - SSImage Converter - 1 Developer License
		else if (programm==23)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001883]=1&affiliateid=200000958";
		//24 - SSImage Converter - 4 Developers License
		else if (programm==24)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001884]=1&affiliateid=200000958";
		//25 - SSImage Converter - Site License
        else if (programm==25)       
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300001885]=1&affiliateid=200000958";		
		//26 - Convertisseur Pro HTML vers RTF
		else if (programm==26)
			S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300015902]=1&languageid=6&currencies=EUR&affiliateid=74795";	
		else
			alert("Please, select product!");
	}
	window.open(S);	
}
//purchasing HTML-to-RTF (Pro) DLL
function HROrder(provider, licenseType)
{
	var componentType = window.document.formtype.comptype.value;
	var S="https://secure.shareit.com";

	if (provider=="ShareIt")
	{
		//Win32
		if (componentType==2)
		{
			//1 Dev
			if (licenseType=="1 Developer License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300072633]=1";
			}// 4 Dev
			else if (licenseType=="4 Developers License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300072712]=1";			
			} //Site
			else if (licenseType=="Site License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076086]=1";			
			}	
		} //.Net
		else if (componentType==3)
		{
			//1 Dev
			if (licenseType=="1 Developer License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076087]=1";
			}// 4 Dev
			else if (licenseType=="4 Developers License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076088]=1";
			} //Site
			else if (licenseType=="Site License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076089]=1";			
			}
		} //COM
		else
		{
			//1 Dev
			if (licenseType=="1 Developer License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[217890]=1";
			}// 4 Dev
			else if (licenseType=="4 Developers License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[217891]=1";
			} //Site
			else if (licenseType=="Site License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[217892]=1";			
			}		
		}
	}
	else if (provider=='Regsoft')
	{
		//Win32
		if (componentType==2)
		{
			//1 Dev
			if (licenseType=="1 Developer License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300072633]=1";
			}// 4 Dev
			else if (licenseType=="4 Developers License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300072712]=1";			
			} //Site
			else if (licenseType=="Site License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076086]=1";			
			}	
		} //.Net
		else if (componentType==3)
		{
			//1 Dev
			if (licenseType=="1 Developer License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076087]=1";
			}// 4 Dev
			else if (licenseType=="4 Developers License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076088]=1";
			} //Site
			else if (licenseType=="Site License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076089]=1";			
			}
		} //COM
		else
		{
			//1 Dev
			if (licenseType=="1 Developer License")
			{
				S="http://www.regsoft.net/purchase.php3?productid=69655";
			}// 4 Dev
			else if (licenseType=="4 Developers License")
			{
				S="http://www.regsoft.net/purchase.php3?productid=69656";
			} //Site
			else if (licenseType=="Site License")
			{
				S="http://www.regsoft.net/purchase.php3?productid=69657";			
			}		
		}
	}
		
	window.open(S);
}

//purchasing package HTML-to-RTF Pro & RTF-to-HTML DLL
function HRHOrder(provider, licenseType)
{
	var componentType = window.document.formtype.comptypePackage.value;
	var S="https://secure.shareit.com";

	if (provider=="ShareIt")
	{
		//Win32
		if (componentType==2)
		{
			//1 Dev
			if (licenseType=="1 Developer License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300072633]=1";
			}// 4 Dev
			else if (licenseType=="4 Developers License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300072712]=1";			
			} //Site
			else if (licenseType=="Site License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076086]=1";			
			}	
		} //.Net
		else if (componentType==3)
		{
			//1 Dev
			if (licenseType=="1 Developer License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300113518]=1";
			}// 4 Dev
			else if (licenseType=="4 Developers License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300113521]=1";
			} //Site
			else if (licenseType=="Site License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300113523]=1";			
			}
		} //COM
		else
		{
			//1 Dev +
			if (licenseType=="1 Developer License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300018556]=1&currencies=USD_EUR";
			}// 4 Dev +
			else if (licenseType=="4 Developers License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300018557]=1&currencies=USD_EUR";
			} //Site +
			else if (licenseType=="Site License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300018558]=1&currencies=USD_EUR";
			}		
		}
	}
	else if (provider=='Regsoft')
	{
		//Win32
		if (componentType==2)
		{
			//1 Dev
			if (licenseType=="1 Developer License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300072633]=1";
			}// 4 Dev
			else if (licenseType=="4 Developers License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300072712]=1";			
			} //Site
			else if (licenseType=="Site License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076086]=1";			
			}	
		} //.Net
		else if (componentType==3)
		{
			//1 Dev
			if (licenseType=="1 Developer License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076087]=1";
			}// 4 Dev
			else if (licenseType=="4 Developers License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076088]=1";
			} //Site
			else if (licenseType=="Site License")
			{
				S="https://secure.shareit.com/shareit/checkout.html?PRODUCT[300076089]=1";			
			}
		} //COM
		else
		{
			//1 Dev + 
			if (licenseType=="1 Developer License")
			{
				S="http://www.regsoft.net/purchase.php3?productid=72896";
			}// 4 Dev +
			else if (licenseType=="4 Developers License")
			{
				S="http://www.regsoft.net/purchase.php3?productid=72897";
			} //Site + 
			else if (licenseType=="Site License")
			{
				S="http://www.regsoft.net/purchase.php3?productid=72898";			
			}		
		}
	}		
	window.open(S);
}
function orderstart(product_id, product_type, provider)
{
	componentType = product_type;
	n=1;
	if (componentType=="auto")
	{
		n=window.document.formtype.comptype.value;
	}
	else if (componentType=="package")
	{
		n=window.document.formtypePackage.comptypePackage.value;
	}
	else if (componentType=="Net")
	{
		n=4;
	}

	if (n==1)
		componentType="COM";
	else if(n==2)
	{
		componentType="Win32";
		provider="Shareit";
	}
	else if (n==3)
	{
		componentType="Net";
		provider="Shareit";
	}
	
	window.location.href = "/order.php?order=1&product=" + product_id + "&type=" + componentType + "&provider=" + provider;
}

