//New window function for rotostack (and elsewhere)
function newWindow(url, height, width) {
nameW='feature'
if (navigator.appVersion.indexOf('4') != -1) {
xTop = screen.width/2 - (width/2);
yTop = screen.height/2 - (height/2);
window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=1,menubar=1,toolbar=1,status=1,location=1,directories=1,left=' + xTop + ',top=' + yTop + '');
} else {
window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=1,menubar=1,toolbar=1,status=1,location=1,directories=1,left=150,top=200');
}
}

//helpWindow has no menubar or toolbar and cannot be resized
function helpWindow(url, height, width) {
nameW='feature'
if (navigator.appVersion.indexOf('4') != -1) {
xTop = screen.width/2 - (width/2);
yTop = screen.height/2 - (height/2);
window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
} else {
window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=150,top=200');
}
}

//jobWindow has no menubar or toolbar, but can be resized
function jobWindow(url, height, width, jobid) {
nameW='feature'+jobid;
if (navigator.appVersion.indexOf('4') != -1) {
xTop = screen.width/2 - (width/2);
yTop = screen.width/2 - (width/2);
window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left='+xTop+',top='+yTop+'');
}else{
window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=150,top=200');
}
}
