var fsize = 14;
function changesize(inc) {
if (!document.getElementById) {return false;} //If the browser doesn't support getElementById then don't do anything
var doc_var = document.getElementById('rigthbody');
if (inc == 'increase') {
fsize +=1;
if (fsize>14){fsize=14;}
}
else if (inc == 'decrease') {
fsize -=1;
if (fsize<11) {fsize=11;}
}
doc_var.style.fontSize = fsize +'px';
}

function newXmlHttp(){
	var xmlhttp = false;
	try{
		xmlhttp = new XMLHttpRequest();
		}catch(e){
			try{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				xmlhttp = false;
			}
		}
	if(!xmlhttp && document.createElement){
		xmlhttp = new XMLHttpRequest();
	}
return xmlhttp;
}
function selectform(){
	var url = "showleftmenu.htm"
	xmlhttp = newXmlHttp();
	xmlhttp.open("GET", url, false);
	xmlhttp.send(null); 
	document.getElementById("showlmenu").innerHTML = xmlhttp.responseText;
}

function selectformcode(){
	var url = "gencode.php"
	xmlhttp = newXmlHttp();
	xmlhttp.open("GET", url, false);
	xmlhttp.send(null); 
	document.getElementById("genphototxt").innerHTML = xmlhttp.responseText;
}

function PopWidnow(url_pop)
    {
     var PopWidth=300;
     var PopHeight=380;
     var PopLeft = (window.screen.width-PopWidth)/2;
     var PopTop = (window.screen.height-PopHeight)/2;
     InID=window.open(url_pop.href,'InID','toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=no,width='+PopWidth+',height='+PopHeight+',top='+PopTop+',left='+PopLeft);
	 InID.focus();
     }
	 
function Getrefererurl(myLink,windowName) {
	var windowprops = "height=380,width=480,location=no,"+"scrollbars=yes,menubar=no,toolbar=no,resizable=yes";
	var site =  myLink;
	var url  = site + "?refererurl=" + window.location;popup = window.open(url,"MenuPopup",windowprops);popup.focus();
}

function Getrefererurl2(myLink,windowName) {
	var windowprops = "height=800,width=1010,location=no,"+"scrollbars=yes,menubar=no,toolbar=no,resizable=yes";
	var site =  myLink;
	var url  = site + "?refererurl=" + window.location;popup = window.open(url,"MenuPopup",windowprops);popup.focus();
}
function Getrefererurl3(myLink,windowName) {
	var windowprops = "height=250,width=500,location=no,"+"scrollbars=yes,menubar=no,toolbar=no,resizable=yes";
	var site =  myLink;
	var url  = site + "?refererurl=" + window.location;popup = window.open(url,"MenuPopup",windowprops);popup.focus();
}
function Getrefererurl4(myLink,windowName) {
	var windowprops = "height=600,width=800,location=no,"+"scrollbars=yes,menubar=no,toolbar=no,resizable=yes";
	var site =  myLink;
	var url  = site + "?refererurl=" + window.location;popup = window.open(url,"MenuPopup",windowprops);popup.focus();
}