function nyhtml(url) {
window.open(url, "help","width=650,height=550,scrollbars=yes,location=no,toolbar=yes,locationbar=yes,statusbar=yes,resizable=yes");
return false;
}

function fncGo(formNavn,selectNavn){
if (document.forms[formNavn][selectNavn].options[document.forms[formNavn][selectNavn].selectedIndex].value != "none") {
location = document.forms[formNavn][selectNavn].options[document.forms[formNavn][selectNavn].selectedIndex].value
		}
	}
function createCookie(name,value,days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
	 window.location.reload( false );
	 }
function show(img, h, w, title, sire, dam){
winopen=window.open('','winopen','width=450,height=475,top=175,left=450');	
//open a window this big, the top and left should help 
//with the placement of that window, although it is not reliable
winopen.document.clear(); 																		
//clear the window contents, in case it is still open
winopen.document.write('<title>' + title + '<\/title>');												
//grab title from href defined in <a tag below
winopen.document.write('<body Bgcolor="#C0C0C0"><CENTER><B>' + title + '<\/b>');			
//grab the title again then grab the image, height and  width
winopen.document.write('<BR><BR><IMG SRC="' + img + '" height=' + h + ' width=' + w + ' ALT=" " BORDER=0><BR><BR><\/center>');
winopen.document.write('<B>Sire: ' + sire + '<BR>Dam: ' + dam + '<\/b>');						
//grab the sire and dam names from the href tag
winopen.document.write('<BR><FORM><INPUT TYPE=BUTTON VALUE=Lukk');				
//place an javascript form button  to close the window
winopen.document.write(' onClick="self.close();"><\/form><BR><\/body>');						
//close the form button and the body of the page
winopen.document.close();
}
function showtxt(tekst, h, w, title, head){
winopen=window.open('','winopen','width=' + w + ',height=' + h + ',top=120,left=120');	
//open a window this big, the top and left should help 
//with the placement of that window, although it is not reliable
winopen.document.clear(); 																		
//clear the window contents, in case it is still open
winopen.document.write('<title>' + title + '<\/title>');												
//grab title from href defined in <a tag below
winopen.document.write('<body Bgcolor="#C0C0C0"><CENTER><B>' + head + '<\/b><BR>' + tekst);						
//grab the sire and dam names from the href tag
winopen.document.write('<BR><FORM><INPUT TYPE=BUTTON VALUE=Lukk');				
//place an javascript form button  to close the window
winopen.document.write(' onClick="self.close();"><\/form><BR><\/body>');						
//close the form button and the body of the page
winopen.document.close();
}

function popup(docname) {
var sURL = docname
var sName = "winWiz"
var sFeatures = "height=750, width=950, toolbar=0"
var wizWin = window.open(sURL, sName, sFeatures)
}

function treet(docname) {
var sURL = docname
var sName = "winWiz"
var sFeatures = "height=300, width=420, top=220, left=140"
var wizWin = window.open(sURL)
}

function tre (docname){
window.open="http://stod.priv.no/stod/" & docname;
}

function ny(url) {
window.open(url, "help","scrollbars=yes,toolbar=no;locationbar=yes;statusbar=yes,resizable=yes");
return false;
}

function newaddr(url) {
window.open(url);
}

function appl(docname) {
var sURL = "file:///R:\\Avdeling\\Eta624\\CICS\\Dok\\Cics\\Applikasjoner\\" + docname
var sName = "winWiz"
var sFeatures = "height=750, width=950, toolbar=0"
var wizWin = window.open(sURL, sName, sFeatures)
}

function goVisitSite(Site) {
NewWindow1 =window.open(Site);
}

function goVisitSite2(Site){
NewWindow1 =window.open(Site, "viewwin", "toolbar=0, width=600, height=600, resizable=1, scrollbars=1, TopPosition=50, location=0");
}

function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;
}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20
}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);
}

function addToFavorites() {
if (window.external){
window.external.AddFavorite(urlAddress,pageName)
}
else{ 
alert("Sorry! Your browser doesn't support this function.");
}
}

