function f(par)
{
	if(par==1)
		location="/about"
	else
			location="/bill"

}
function isIt(input, it)
{
	if(it=="empty")
	{
		check= new Array(" ",  "	");	
		if(input=="")
			return true
	}	
	if(it=="digit")
		check= new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 0);	
	if(it=="charOrDigit")
 		check= new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, "q", "w", "e",  "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m");

for (var i = 0; i < input.length; i++)
  {
    var chr = input.charAt(i);
    var found = false
    for (var j = 0; j < check.length; j++) 
      if (chr == check[j]) found = true
    if (!found) return found
   }
   return found
}
function show(what, vis)
{
	document.getElementById(what).style.display=vis
}
function showgoods(id, md)
{
	window.open('/show.php?id='+id+'&p='+md,'_blank','left='+((document.body.clientWidth-850)/2)+', top=200, width=650px,height=500px,location=no,toolbar=no,status=no,scrollbars=yes'); 

}
function showPhoto(pict)
{
	//alert(pict.src)
	window.open('/show2.php?id='+pict.src,'_blank','left='+((document.body.clientWidth-850)/2)+', top=200, width=650px,height=500px,location=no,toolbar=no,status=no,scrollbars=yes'); 

}

function bigphoto(obj)
{
	var str=obj.src.toString()
	document.getElementById('mainphoto').src=str.replace('/2/', '/3/')
}