function popUp(URL,WIDTH,HEIGHT) {
	day = new Date();
	id = day.getTime();
	var LEFT = (screen.width - WIDTH) / 2;
	var TOP = (screen.height - HEIGHT) / 2;
	eval("page" + id + " = window.open(URL,'" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + WIDTH + ",height=" + HEIGHT + ",left=" + LEFT + ",top=" + TOP + "');");
}
function PopWindow(url,name,width,height,loc,status,menu,scroll,resize,per,tool) {
	var LeftW = (screen.width-width)/2;
	var TopW = (screen.height-20-height)/2;
	PopupWin = window.open(url,name,'width='+width+',height='+height+',locationbar='+loc+',statusbar='+status+',menubar='+menu+',scrollbars='+scroll+',resizable='+resize+',personalbar='+per+',toolbar='+tool+',left='+LeftW+',top='+TopW);
	PopupWin.focus();
}

function Increment(txtBox){
	try {if(txtBox.value<99)txtBox.value=eval(txtBox.value+ "+1");}
	catch (_e) {txtBox.value="0";}
}
function Decrement(txtBox){
	try {if(txtBox.value>0)txtBox.value=eval(txtBox.value+ "-1");}
	catch (_e) {txtBox.value="0";}
}

function ShowHideSpn(spanulX) {
	spanul = document.getElementById(spanulX);
	if(spanul.style.display=="none") {
		spanul.style.display="";
	} else {
		spanul.style.display="none";
	}
}

