browser = navigator.appName;
appVer = parseInt(navigator.appVersion);
ie = "Microsoft Internet Explorer";
ns = "Netscape";
if (navigator.appVersion.indexOf("Macintosh") != -1) {
		isMac = true;
} else {
		isMac = false;
}
if (document.getElementById) {
	document.write('<link rel="stylesheet" type="text/css" href="http://www.marlinnut.com/style/ie.css" title="master">');
} else	
if (browser == ns && isMac == false) {
	if (appVer > 3) {
		document.write('<link rel="stylesheet" type="text/css" href="http://www.marlinnut.com/style/nn.css">');
	}
} 	else if (browser == ie && isMac == true) {
	  document.write('<link rel="stylesheet" type="text/css" href="http://www.marlinnut.com/style/ie_mac.css">');
} else if (browser == ns && isMac == true) {
	  document.write('<link rel="stylesheet" type="text/css" href="http://www.marlinnut.com/style/nn_mac.css">');
} else {
	document.write('<link rel="stylesheet" type="text/css" href="http://www.marlinnut.com/style/ie.css">');
} 

function formHandler(form){
	var URL = document.form.site.options[document.form.site.selectedIndex].value;
	window.location.href = URL;
}

function selectWin(source,h1,w1){
	newWin = window.open(source,'','height=' + h1 + ',width=' + w1 + ',top=10,left=0');
}

function openWindow(url, height, width){
	var sParams = 'height='+height+',' 
         sParams = sParams + 'width='+width+',' 
         sParams = sParams + 'toolbar=no,' 
         sParams = sParams + 'status=yes,' 
         sParams = sParams + 'scrollbars=yes,' 
         sParams = sParams + 'directories=no,' 
         sParams = sParams + 'location=no,' 
         sParams = sParams + 'menubar=no' 
         sParams = sParams + ',resizable=yes';
	var win = window.open(url,"memberwin",sParams,true);
}

 function showimage(img)
	{openWindow('showpicture.html?image='+img,500,700)}
	
	
var nReload = 5;

function NewVerifyImage()
{
    if (nReload <= 2)
        if (nReload <= 0)
        {
            alert("Sorry, too many reloads.");
            return;
        }
        else
            alert("Only " + nReload + " more reloads are allowed");
    nReload--;

    var         e_img;

    e_img = document.getElementById("vimg");
    if (e_img)
        e_img.setAttribute("src",e_img.src+'?count='+nReload);
}

function PrintThisPage() 
{ 
   var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
       sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; 

   var sWinHTML = document.getElementById('contentstart').innerHTML; 
   
   var winprint=window.open("","",sOption); 
       winprint.document.open(); 
       winprint.document.write('<html><link href="http://97.74.56.64/style/print.css" rel=Stylesheet><body>'); 
       winprint.document.write(sWinHTML);          
       winprint.document.write('</body></html>'); 
       winprint.document.close(); 
       winprint.focus(); 
}


