
function inputFocus(x)
{
	document.getElementById(x).style.background="#f7f7bd";
}
function inputBlur(x)
{
	document.getElementById(x).style.background="#fff";
}
function buttonFocus(x)
{
	document.getElementById(x).style.background="#c0c0c0";
}
function buttonBlur(x)
{
	document.getElementById(x).style.background="#dbdddf";
}

var NS = (navigator.appName=="Netscape")?true:false;
function FitPic() {
   iWidth = (NS)?window.innerWidth:document.body.clientWidth;
   iHeight = (NS)?window.innerHeight:document.body.clientHeight;
   iWidth = document.images[0].width - iWidth;
   iHeight = document.images[0].height - iHeight;
   window.resizeBy(iWidth, iHeight);
   self.focus();};
function pop_coupon(url)
{
	var newwin = window.open(url,"pop_coupon","status=no,resizable=1,height=848,width=524,left=20,top=20");
	newwin.focus()
}
function PopPic(url)
{
	var newwin = window.open( "/picture.php?"+url,"popup","status=no,resizable=1,height=100,width=100,left=20,top=20");
	newwin.focus();
};
function alertpop(url,windowname)
{
	var newwin = window.open(url,windowname,"channelmode=no,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,height=135,width=468,left=300,top=300");
	newwin.focus();
};
function getflash(url,windowname)
{
	var newwin = window.open(url,windowname,"status=no,toolbar=no,resizable=no,location=no,menubar=no,scrollbars=yes,height=650,width=650,left=20,top=20");
	newwin.focus();
};

function new_blankwindow(url,windowname)
{
	var newwin = window.open(url,windowname,"status=no,toolbar=yes,resizable=1,location=no,scrollbars=yes,height=600,width=800,left=20,top=20");
	newwin.focus();
};
function out(id, str)
{
	document.getElementById(id).innerHTML = str;
};
