function newWindow(sURL, sName, w, h) 
{
    //  your new window's width
    var w = w || 650;
    //  your new window's height
    var h = h || 650;
    var sName = sName || ("win" + new Date().getTime());
		    
    var ah = window.screen.availHeight;
    var aw = window.screen.availWidth;
    var l = (aw/2) - (w/2);
    var t = (ah/2) - (h/2);
    var sAtts = "location=no" + 
        ",menubar=no" + 
        ",resizable=no" + 
        ",scrollbars=yes" + 
        ",status=yes" + 
        ",toolbar=no" +
        ",height=" + h + 
        ",width=" + w + 
        ",top=" + t + 
        ",left=" + l;        
		        
    window.newWin = window.open(sURL, sName, sAtts);
}

function newWindowSize(sURL, sName, w, h) 
{
    //  your new window's width
    var w = w || 650;
    //  your new window's height
    var h = h || 650;
    var sName = sName || ("win" + new Date().getTime());
		    
    var ah = window.screen.availHeight;
    var aw = window.screen.availWidth;
    var l = (aw/2) - (w/2);
    var t = (ah/2) - (h/2);
    var sAtts = "location=no" + 
        ",menubar=no" + 
        ",resizable=yes" + 
        ",scrollbars=yes" + 
        ",status=yes" + 
        ",toolbar=no" +
        ",height=" + h + 
        ",width=" + w + 
        ",top=" + t + 
        ",left=" + l;        
		        
    window.newWin = window.open(sURL, sName, sAtts);
}

function integersOnly(e) 
{
e = (e) ? e : event;
var  charCode =  (e.intCode) ? e.intCode : 
((e.keyCode) ? e.keyCode : 
((e.which) ? e.which : 0));
if(charCode > 31 && (charCode < 46 || charCode > 57))
{
  alert("Numbers only please!.");
  return false;
}
return true;
}

function varitext(text)
{
text=document
print(text)
}




