function yesorno(message){
var x=confirm(message);
if (x==true){
	return true
} else {
	return false;};
}

// Script for opening popup windows and centereing them on the screen
// Taken from http://www.sitepoint.com/forums/showthread.php?t=88100&highlight=center+popup

function PopUp(u,n,t,l,d,s,m,b,r,w,h,e,p)
{
if(e==""&&p=="")
{
var e=(screen.width/2)-(w/2);
var p=(screen.height/2)-(h/2);
}
NewWindow = window.open(""+u+"",""+n+"","toolbar="+t+",location="+l+",directories="+d+",status="+s+",menubar="+m+",scrollbars="+b+",resizable="+r+",width="+w+",height="+h+",left="+e+",top="+p+"");
NewWindow.focus()
}

// Coment by author on how the script works
// And you call it like so:

// <a href="java_script_:;" onclick="java_script_:PopUpTWS('the url here','name of win here','toolbar','location','directories','statusbar','menubar','scrollbars','r esizable','width','height','left','top');">Link Text</a>

// An example of calling it is:

// <a href="java_script_:;" onclick="java_script_:PopUpTWS('http://www.yahoo.com/','Yahoo','0','1','0','1','0','1','0','500','600','','');">Link Text</a>

// the 0 means no
// the 1 means yes

// use 0 and 1 for calling the window properties eg toolbar, directories, etc.
// if you want to center the win leave the last two fiels in the onclick blank (like I have done above)
// or you can specify the left and top measurements.
