var fwdapp = "http://www.misterprotocol.net/mrprotocol/";

function openMyWindow() { 
var i, args=openMyWindow.arguments;
  newWindow = window.open('','', 'height=429,width=759, toolbar=no, directories=no, location=no, status=no, menubar=no, scrollbars=no');
  	text =  "<html>\n<head>\n<title>" + args[0] + "</title><LINK href=\"../scripts/style.css\" type=text/css rel=stylesheet>\n</head>\n<body>\n";
	text += "<img src=\"" + args[1] + "\" ></body></html>\n";
	newWindow.document.write(text);
	newWindow.focus();
}
function updateSQL() {
	var i, args=updateSQL.arguments;
	var st = "";
	var resu = " ";
	for (i=0; i<args.length; i+=2) {
		if (i==0) {
			st = args[i] + " = '" + args[i+1] + "' ";
			
		} else { 
			st = st + ", " + args[i] + " = '" + args[i+1] + "'";
			
		}
	}
	resu = resu + st;
return resu;
}

function surr(argu) {
	return "'" + argu + "'";
}

function wndOpen(url) {
	window.open(url);
}

function wndOpenPopup(url,height,width) {
	window.open(url,"wnd","scrollbars,resizable,height="+height+",width="+width);
}

function wndMove(url) {
	document.location=url;
	window.focus();
}
