function calpopup(lnk) { 

windowSpecs = "height=150,width=160,scrollbars=no,top=300,left=210"
window.open(lnk, "calendar",windowSpecs) 
} 

var win= null;
function NewWindow(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=yes';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}


var ieHasFlash = false;



//<![CDATA[
function has_flash () {
var plugin = false;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
if (navigator.plugins && navigator.plugins["Shockwave Flash"])
plugin = true;
}
else if (navigator.userAgent
&& navigator.userAgent.indexOf("MSIE")>=0 
&& navigator.userAgent.indexOf("MSIE 4")==-1 
&& navigator.userAgent.indexOf("Windows")>=0
&& ieHasFlash) {
plugin = true;
}
return plugin;
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=1,width=460,height=380,left = 0,top = 0');");
}
function popUpSunnlendingur(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=1,width=465,height=560,left = 570,top = 410');");
}
// End -->

function PopupPic(sPicURL) { 
				window.open("Myndir.asp?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200,left = 0,top = 0");
			}
