//This is an external javascript file for the 'johwnsewingcneter.com' site

//functions to open windows
var newWin = null

function openVariableWindow(url,w,h) 
{
settings =
'height='+h+',width='+w+',scrollbars=yes,resizable=yes'
newWin = window.open(url,"newWindow",settings);
newWin.moveTo(10,10);
}



function CloseNewWin(){
newWin.close()
}


function openWindow(url) {
	window.open(url, "newWindow", "width=650,height=550,scrollbars=yes,resizable=yes");
	}

function openPrintWindow(url,w,h) {
settings =
'height='+h+',width='+w+',scrollbars=yes,resizable=yes'
newWin = window.open(url,"newWindow",settings);
newWin.moveTo(10,10);
}



	
function openWideWindow(url) {
	newWindow=window.open(url, "newWindow", "width=600,height=500,scrollbars=yes,resizable=yes");
	newWindow.moveTo(0,0);
	newWindow.focus( );
	}


function openBigWindow(url) {
	wideWindow=window.open(url, "wideWindow", "width=775,height=500,scrollbars=yes,resizable,toolbar, location=yes, directories=yes, status=yes, menubar=yes");
	//wideWindow.moveTo(20,20);
	wideWindow.focus( );
	}
	
var browserName = navigator.appName;
var browserVersion = parseInt(navigator.appVersion);
var browser;

if (browserName == "Netscape" && browserVersion >= 5) {
    browser = "nn6up";
}
else if (browserName == "Microsoft Internet Explorer" && 
         browserVersion >= 4) {
    browser = "ie4up";
}
else {
    browser = "otherBrowser";
}

function browserCheck(){
if (browser == "otherBrowser") {
   openWindow("javascriptAlert.html");
}
}
