var _st="";
var _win=null;


function trackclick(url,  atxt) {
    if(document.images){
        (new Image()).src=url;
    }
    return true;
}

function s(value, name)
{
  f = document.MYFORM;
  f.action = "/vote.php";

  _st="";
  _st+="<html><head></head>";
  _st+="<body bgcolor='#3CAEEA'>";
  _st+="<form name='ssform' action='/vote.php' method='POST'>";
  _st+="<input type='hidden' name='title' value=\""+name+"\">";
  _st+="<input type='hidden' name='1' value='"+value+"'>";
  _st+="</form>";

	  _win=window.open('', 'Vote', 'left=400,top=300,width=200,height=100,toolbar=0,status=0,resizable=0');
	  /* wait 1 second then write output */
	  _win.document.open();
	  _win.document.write(_st);
	  _win.document.ssform.submit();
	  setTimeout("_win.close();",2000);

  return true;
}

function addBookmark(title,url) {
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,""); 
	} 
	else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
	return true;
	}
}


function createWindow(what, x) {

  _st="";
  _st+="<html><head><title>About</title></head>";
  _st+="<body bgcolor='#3CAEEA'><BR><H1><font color=white>Please wait...</font></H1>";
  if(x == 1)
	{
  _st+="<form name='ssform' action='/mail/signup.php' method='POST'>";
	}
	else
	{
  _st+="<form name='ssform' action='/mail/unsignup.php' method='POST'>";
	}

  _st+="<input type='hidden' name='address' value=\""+what.address.value+"\">";
  _st+="</form>";

	  _win=window.open('', 'Submit', 'left=400,top=400,width=342,height=120,toolbar=0,status=0,resizable=0');
	  /* wait 1 second then write output */
	  _win.document.open();
	  _win.document.write(_st);
	  _win.document.ssform.submit();

//    window.open (URL, windowName, features);
	return false;
}
