function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

//popup window
function winOpen(url, breite, hoehe) {
  // Errechnet Koordinaten, um das Popup zentriert zu platzieren
  links = (screen.width/2)-(breite/2);
  oben = (screen.height/2)-(hoehe/2);
  window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
} 

//universities
function Go(x) {
  if(x == "nothing") {
    document.forms[0].reset();
    document.forms[0].elements[0].blur();
    return;
  }
  else {
    parent.location.href = x;
    document.forms[0].reset();
    document.forms[0].elements[0].blur();
  }
}

//bookmark
function addbookmark(){
	if (document.all)
	  window.external.AddFavorite('http://www.internship-uk.com','www.Internship-uk.com')
}

function popup() {
  newWindow = window.open("http://www.studios92.co.uk/secure/policy/privacy_policy.asp?subject=Hotel&r=1&style=internship-uk.com", "apply", "resizable=yes,scrollbars=yes,width=600,height=600,screenX=200,screenY=50,top=50,left=200,scrollbars=autoscrolling=yes");
}

function openApplicationForm(version) {
	switch(version) {
  	case "1":
  		window.open('apply.asp','apply','resizable=yes,scrollbars=yes,width=550,height=550,screenX=200,screenY=200,top=200,left=200');
			break;
  	case "2":
			window.open('http://www.internship-uk.com/apply0.asp','apply','resizable=yes,scrollbars=yes,width=600,height=555,screenX=200,screenY=50,top=50,left=200,scrolling=yes');
			break;
	case "3":
      window.open('http://www.internship-uk.com/update_application_1.asp','apply','status,resizable=yes,scrollbars=yes,scrolling=yes,width=600,height=550,screenX=200,screenY=50,top=50,left=200');
	}
}

function winsOpen(url,name){
  window.open(url,name,"");
}

