// JAVASCRIPTS TO BE USED FOR ALL LINKS THAT ARE OPENED
// AT THE META NAVIGATION WITHIN ALL SITES

var newWin

function launchWin(winUrl,winName,winX,winY,winFeatures){
	winTop  = (screen.height-winY)/2;
	winLeft = (screen.width-winX)/2;
	newWin = window.open(winUrl,winName,'width='+winX+',height='+winY+',top='+winTop+',left='+winLeft+','+winFeatures);
}

function launchRegistrationForm(language,referringsite,winName,winX,winY){
	winTop  = (screen.height-winY)/2;
	winLeft = (screen.width-winX)/2;
	newWin = window.open('/scripts/cud/registration/index.asp?purpose=register&language='+language+'&siteid='+referringsite+'',winName,'width='+winX+',height='+winY+',top='+winTop+',left='+winLeft+',scrollbars=1,resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0');
}

function launchModificationForm(language,referringsite,winName,winX,winY){
	winTop  = (screen.height-winY)/2;
	winLeft = (screen.width-winX)/2;
	newWin = window.open('/scripts/cud/registration/index.asp?purpose=update&language='+language+'',winName,'width='+winX+',height='+winY+',top='+winTop+',left='+winLeft+',scrollbars=1,resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0');
}

function launchForgottenpasswordForm(language,referringsite,winName,winX,winY){
	winTop  = (screen.height-winY)/2;
	winLeft = (screen.width-winX)/2;
	newWin = window.open('/scripts/cud/registration/index.asp?purpose=password&language='+language+'',winName,'width='+winX+',height='+winY+',top='+winTop+',left='+winLeft+',scrollbars=0,resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0');
}

function launchDeleteRecordForm(language,referringsite,winName,winX,winY){
	winTop  = (screen.height-winY)/2;
	winLeft = (screen.width-winX)/2;
	newWin = window.open('/scripts/cud/registration/index.asp?purpose=delete&language='+language+'',winName,'width='+winX+',height='+winY+',top='+winTop+',left='+winLeft+',scrollbars=0,resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0');
}
