webmaker=null;
imagewin=null;
function start()
{
	image_coll=self.document.getElementsByTagName("img");
	for(i=0;i<image_coll.length;i++)
	{
		q=image_coll.item(i).name;
		if(q!="a2zbusinessemail"&&q!="hotmail"&&q!="handiimail"&&q!="yahoomail"&&q!="a2zpersonalemail"&&q!="icra"&&q!="safesurf"&&q!="safe4kids"&&q!="7search"&&q!="sex_with_children_is_a_crime"&&q!="ranking_seal") ir(image_coll.item(i));
	}
	with(document)
	{
		getElementById("qlink0").innerHTML+=parent.Q_Msg[0];
		getElementById("qlink1").innerHTML+=parent.Q_Msg[1];
		getElementById("qlink2").innerHTML+=parent.Q_Msg[2];
		getElementById("qlink3").innerHTML+=parent.Q_Msg[3];
		getElementById("qlink4").innerHTML+=parent.Q_Msg[4];
		getElementById("qlink5").innerHTML+=parent.Q_Msg[5];
		getElementById("qlink6").innerHTML+=parent.Q_Msg[6];
		getElementById("qlink7").innerHTML+=parent.Q_Msg[7];
		getElementById("qlink8").innerHTML+=parent.Q_Msg[8];
		getElementById("qlink9").innerHTML+=parent.Q_Msg[9];
		if(screen.width<=640) getElementById("maintable").cellPadding=3;
		if(screen.width>=800&&screen.width<1024) getElementById("maintable").cellPadding=4;
	}
}
function whatuget()
{
	reset();
	imagewin=window.open('websites.htm','websites','scrollbars=yes,width=500,height=450,top='+(screen.availHeight-450)/2+',left='+(screen.availWidth-500)/2);
}
function submitform(form)
{
	reset();
	if(form.sitetype[0].checked) webmaker=window.open('webmaker00.htm?sitetype='+form.sitetype[0].value+'&p_lang='+p_lang,'webmaker','fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width='+screen.availWidth+',height='+screen.availHeight+',top=0,left=0',true);
	else if(form.sitetype[1].checked) webmaker=window.open('webmaker00.htm?sitetype='+form.sitetype[1].value+'&p_lang='+p_lang,'webmaker','fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width='+screen.availWidth+',height='+screen.availHeight+',top=0,left=0',true);
}
function reset()
{
	if(imagewin&&imagewin.open&&!imagewin.closed) imagewin.close();
	if(webmaker&&webmaker.open&&!webmaker.closed) webmaker.close();
}
a2zbusinessemail="a2zbusinessemail.htm";
a2zpersonalemail="a2zpersonalemail.htm";
thailand_exchange_rates="thailand_exchange_rates.htm";
thailand_stock_market="thailand_stock_market.htm";
pattaya_weather="pattaya_weather.htm";
function qlwin(winql)
{
	if(winql=="a2zbusinessemail.htm"||winql=="a2zpersonalemail.htm") window.open(winql,'win','fullscreen=no,channelmode=no,toolbar=yes,location=no,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes',true);
	else window.open(winql,'win','fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no',true);
}
function emaillogin(form)
{
	if(form.loginName.value=="")
	{
		alert("You must enter your login name");
		form.loginName.focus();
		return;
	}
	if(form.user_pwd.value=="")
	{
		alert("You must enter your password");
		form.user_pwd.focus();
		return;
	}
	window.open(form.action+'?loginName='+form.loginName.value+'&user_pwd='+form.user_pwd.value+'&login=Login','a2zemail','fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,height='+screen.height*.75+',width='+screen.width*.75+',top=0,left=0',true);
}
function NewUser(form)
{
	window.open('http://a2zpattaya.mail.everyone.net/email/scripts/serviceMenu.pl?user=new','NewUser','fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,height='+screen.height*.75+',width='+screen.width*.75+',top=0,left=0',true);
}
function advertiserlogin(form)
{
	if(form.advertiser.value=="")
	{
		alert("You must enter your login name");
		form.advertiser.focus();
		return;
	}
	if(form.password.value=="")
	{
		alert("You must enter your password");
		form.password.focus();
		return;
	}
	form.submit();
}
function ticker1()
{
	with(document)
	{
		if(getElementById("t1").innerHTML=="Pattaya") getElementById("t1").innerHTML="Phuket";
		else if(getElementById("t1").innerHTML=="Phuket") getElementById("t1").innerHTML="Koh Samui";
		else if(getElementById("t1").innerHTML=="Koh Samui") getElementById("t1").innerHTML="From US$20";
		else if(getElementById("t1").innerHTML=="From US$20") getElementById("t1").innerHTML="Including";
		else if(getElementById("t1").innerHTML=="Including") getElementById("t1").innerHTML="Breakfast";
		else if(getElementById("t1").innerHTML=="Breakfast") getElementById("t1").innerHTML="Pattaya";
		if(getElementById("t1a").style.color=="black") getElementById("t1a").style.color="red";
		else getElementById("t1a").style.color="black";
		if(getElementById("t2").innerHTML=="Automobiles") getElementById("t2").innerHTML="Business";
		else if(getElementById("t2").innerHTML=="Business") getElementById("t2").innerHTML="Collectibles";
		else if(getElementById("t2").innerHTML=="Collectibles") getElementById("t2").innerHTML="Computers";
		else if(getElementById("t2").innerHTML=="Computers") getElementById("t2").innerHTML="Employment";
		else if(getElementById("t2").innerHTML=="Employment") getElementById("t2").innerHTML="Merchandise";
		else if(getElementById("t2").innerHTML=="Merchandise") getElementById("t2").innerHTML="Personals";
		else if(getElementById("t2").innerHTML=="Personals") getElementById("t2").innerHTML="Pets";
		else if(getElementById("t2").innerHTML=="Pets") getElementById("t2").innerHTML="Professional";
		else if(getElementById("t2").innerHTML=="Professional") getElementById("t2").innerHTML="Real Estate";
		else if(getElementById("t2").innerHTML=="Real Estate") getElementById("t2").innerHTML="Rentals";
		else if(getElementById("t2").innerHTML=="Rentals") getElementById("t2").innerHTML="Automobiles";
		if(getElementById("t2a").style.color=="black") getElementById("t2a").style.color="red";
		else getElementById("t2a").style.color="black";
	}
}
function pattaya_thai_gay()
{
	with(document)
	{
		getElementById("pattaya_thai_gay").noResize=1;
		getElementById("pattaya_thai_gay").hspace="0";
		getElementById("pattaya_thai_gay").vspace="0";
		getElementById("pattaya_thai_gay").allowTransparency=1;
		if(screen.width<=640) getElementById("pattaya_thai_gay").height="790";
		else if(screen.width>=800&&screen.width<1024) getElementById("pattaya_thai_gay").height="810";
		else if(screen.width>=1024&&screen.width<1280) getElementById("pattaya_thai_gay").height="1075";
		else if(screen.width>=1280) getElementById("pattaya_thai_gay").height="910";
	}
}
function hotel_affiliate()
{
	with(document)
	{
		getElementById("hotel_affiliate").noResize=1;
		getElementById("hotel_affiliate").hspace="0";
		getElementById("hotel_affiliate").vspace="0";
		getElementById("hotel_affiliate").allowTransparency=1;
		if(screen.width<=640) document.getElementById("hotel_affiliate").height="500";
		else if(screen.width>=800&&screen.width<1024) document.getElementById("hotel_affiliate").height="480";
		else if(screen.width>=1024&&screen.width<1280) document.getElementById("hotel_affiliate").height="580";
		else if(screen.width>=1280) document.getElementById("hotel_affiliate").height="510";
	}
}
function pattaya_sport_thailand_information()
{
	with(document)
	{
		getElementById("pattaya_sport_thailand_information").noResize=1;
		getElementById("pattaya_sport_thailand_information").hspace="0";
		getElementById("pattaya_sport_thailand_information").vspace="0";
		getElementById("pattaya_sport_thailand_information").allowTransparency=1;
		if(screen.width<=640) getElementById("pattaya_sport_thailand_information").height="90";
		else if(screen.width>=800&&screen.width<1024) getElementById("pattaya_sport_thailand_information").height="90";
		else if(screen.width>=1024&&screen.width<1280) getElementById("pattaya_sport_thailand_information").height="110";
		else if(screen.width>=1280) getElementById("pattaya_sport_thailand_information").height="98";
	}
}
