//Global definitions, Copyright Jan Larsen, February 2005
//wwwroot=""
wwwroot="http://mlsp2009.conwiz.dk/"
homecgi="http://www.conwiz.dk/cgi-all/mlsp2009/"
space=wwwroot+"images/space.gif"
stylesheetlink=wwwroot+"css/conwiz.css"

if (!(window.title)){
  title=document.title
}
if (!(window.maintainedbyemailpo)){
  maintainedbyemailpo="jl"
}
if (!(window.maintainedbyemailpt)){
  maintainedbyemailpt="imm.dtu.dk"
}
if (!(window.maintainedbyhomepage)){
  maintainedbyhomepage="javascript:nothing()"
}
if (!(window.maintainedby)){
  maintainedby="Jan Larsen"
}
if (!(window.lastupdated)){
  lastupdated="01|11|2004"
}
//function searchsubmit(){
//  t="http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=site%3A"+wwwroot+"+"+document.f.q.value
//  myWindow = window.open(t,"GoogleSearch")
//}
function searchsubmit(){
//  t="http://www.google.com/custom?cx=007209443792586643223%3Aiwfjkdmechc&q="+document.f.q.value+"&sa=Search&cof=CX%3AMLSP%25202007%3BFORID%3A0&hl=en&client=google-coop" 
//  t="http://www.google.com/cse?cx=016017112704021495088%3Acjmx23zqx4e&q="+document.f.q.value+"&sa=S%C3%B8g&cof=FORID%3A0&ie=utf-8&oe=utf-8"
    t="http://www.google.com/cse?cx=016017112704021495088%3Acjmx23zqx4e&q="+document.f.q.value+"&ie=utf-8&oe=utf-8"
//  t="http://www.google.com/cse?cx=007209443792586643223%3A9m3lwa8kl4q&q=hello&sa=S%C3%B8g&cof=FORID%3A0&ie=utf-8&oe=utf-8"
  myWindow = window.open(t,"GoogleSearch")
}
function EmailCryptws(partOne, partTwo) {
    document.location.href = 'mailto:' + partOne + '@' + partTwo;
}
function EmailCrypt(partOne, partTwo,subj) {
    document.location.href = 'mailto:' + partOne + '@' + partTwo +'?subject='+subj;
}
function ShowEmailCrypt(partOne, partTwo,subj) {
    self.status = 'Send email to: ' + partOne + '@' + partTwo +'?subject='+subj;
}
function ShowEmailCryptws(partOne, partTwo) {
    self.status = 'Send email to: ' + partOne + '@' + partTwo;
}
function viewcomments(Titel,Text){ 
  msg = open("","Vindue","height=400,width=600,resizable=yes,scrollbars=yes,statusbar=no,toolbar=no,location=no,directories=no,menubar=no,copyhistory=no,top=30,left=30","replace=true");
  msg.document.write("<HTML><HEAD><TITLE>"+Titel+"</TITLE><link href="+stylesheetlink+" rel='stylesheet' type='text/css'></HEAD><BODY style=\"margin-top:10px;margin-bottom:10px;margin-left:10px;margin-right:10px;\">"+Text+"</BODY></HTML>");
  msg.document.close(); 
}
