function openWin(x,wid,hei) {

  myWin= open("", "x", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+wid+",height="+hei);

  myWin.document.open();

  myWin.document.write("<html><head><title>User Photo</title></head>");
  myWin.document.write("<body bgcolor='FF9900' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'><center>");
  myWin.document.write("<a href='javascript:close();'><img src='"+x+"' width='"+wid+"' height='"+hei+"' border='0'></a>");
  myWin.document.write("</center></body></html>");

  myWin.document.close();
}


function window_u(url,wd,ht) {window.open('/cgi-bin/uinfo.cgi?id='+url,url,"width="+wd+",height=450,status=yes,toolbar=no,menubar=no,scrollbars=yes");}
function window_n(url,wd,ht) {Win=open('news.php?lang=az&id='+url,url,"width="+wd+",height="+ht+",status=no,toolbar=no,menubar=no,scrollbars=yes");}
function window_h(url,wd,ht) {Win=open('help_'+url+'.html',url,"width="+wd+",height="+ht+",status=no,toolbar=no,menubar=no,scrollbars=yes");}
function window_m(url,wd,ht) {window.open('/cgi-bin/'+url+'.cgi',url,"width="+wd+",height="+ht+",status=no,toolbar=no,menubar=no,scrollbars=yes");}
function window_chat(url,wd,ht) {window.open('/'+url+'.html',url,"width="+wd+",height="+ht+",status=no,toolbar=no,menubar=no,scrollbars=no");}


function checkFields () {

	document.gb_form.bt.disabled = true;
				
	if (document.gb_form.gb_txt.value == "") {
		alert('Do not leave message field blank!');
		return false;
	}
	if (document.gb_form.gb_txt.value.length >= 2048) {
		alert('Too big message!');
		return false;
	}
	return true;

}

