function getPage(loc, args)
{
	var ar_loc = loc.split("/");
	if (ar_loc[1] == undefined)
	{
		window.location = ar_loc[0] + ".php";			
	}
	else
	{
		if(args == undefined)
		{
			args = "?w=getPage&loc=";
		}
		else
		{
			args = args + "&w=getPage&loc=";
		}
		var url = 'ws.php' + args + ar_loc[1];
		new Ajax.Updater($('content'), url);		
	}
}
function swapImg(item, method)
{
	item.src= 'img/letter_send_'+ method + '.png';
}
function changeTxt(txt, txtValue)
{			
		
		if(txt.value == "")
		{
			txt.value = txtValue;
			//txt.class = 'inputInactive';
		}
		else if(txt.value == txtValue)
		{
			//txt.class = 'inputActive';
			txt.value = "";				
		}	
		
}
function submitform()
{
	document.contactForm.submit();
}
