/*********************/
/* POP UPS SNIPPETS  */
/*********************/
/*function openWin(myURL) {
myWidth = 400;
myHeight = 350;
myLeft = (screen.width - myWidth) / 2;
myTop = (screen.height - myHeight - 15) / 2;
myFeatures = 'width=' + myWidth + ',height=' + myHeight + ',left=' + myLeft +',top='+ myTop +',scrollbars=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=no';
var TheNewWindow = window.open(myURL,'MyWindow',myFeatures);
}
*/
function openWin(mVar1) {
openWindow(mVar1, 640, 450, 'yes');
}
function openWindow(myURL, the_width, the_height, the_scroll) {
myWidth = the_width;
myHeight = the_height;
myLeft = (screen.width - myWidth) / 2;
myTop = (screen.height - myHeight - 15) / 2;
myScroll = the_scroll
myFeatures = 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,width=' + myWidth + ',height=' + myHeight + ',left=' + myLeft +',top='+ myTop +',scrollbars=yes';
var TheNewWindow = window.open(myURL,'MyWindow',myFeatures);
}
function openRSWin(myURL, the_width, the_height, the_scroll) {
myWidth = the_width;
myHeight = the_height;
myLeft = (screen.width - myWidth) / 2;
myTop = (screen.height - myHeight - 15) / 2;
myScroll = the_scroll
myFeatures = 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,width=' + myWidth + ',height=' + myHeight + ',left=' + myLeft +',top='+ myTop +',scrollbars=yes';
var TheNewWindow = window.open(myURL,'MyWindow',myFeatures);
}
function PrintThisPage(myVar1, myVar2) {
//myVar1 & myVar2 are dummy variables
//for later use (like propogating referrer page) if needed
openWindow(myVar1, 640, 460, 'yes');
}
function EmailFriend(myVar1, myVar2) {
//myVar1 & myVar2 are dummy variables
//for later use (like propogating referrer page) if needed
var myWidth = 750; 
var myHeight = 800; 
var myLeft = (screen.width - myWidth) / 2;
var myTop = (screen.height - myHeight - 15) / 2;
myURL = '/PartnerAdmin/html/portlet/emailFriend/editPage.jsp';
myFeatures = 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=no,width=' + myWidth + ',height=' + myHeight + ',left=' + myLeft +',top='+ myTop +',scrollbars=yes';
var TheNewWindow = window.open(myURL,'eMail',myFeatures);
}
function ContactYou(myVar1) {
openWindow(myVar1, 640, 450, 'yes');
}
function PreApp(myVar1) {
openWindow(myVar1, 880, 450, 'yes');
}
function questionForm(mVar1) {
openWindow(mVar1, 640, 450, 'yes');
}
function feedbackForm(mVar1) {
openWindow(mVar1, 640, 450, 'yes');
}
function LoginPage() {
//openWindow('../location/to/login.page', 640, 450, 'yes');
//alert('Login Page');
location.href='http://university.u21global.com/';
}
function SubscribeNow() {
//validation + subscribe foo
alert('Subscribe Function');
return false;
}
// form clear snippet
function clearMe(el) {
  if (el.defaultValue==el.value) el.value = ""
}
function PollR(mVar1) {
openWindow(mVar1, 480, 350, 'yes');
}
function PollA(mVar1) {
openWindow(mVar1, 480, 350, 'yes');
}
function PressRelease(myURL) {
openWindow(myURL, 640, 460, 'yes');
}
function FacProfile(myURL) {
openWindow(myURL, 640, 460, 'yes');
}
function eNewsletter(myURL) {
openWindow(myURL, 725, 525, 'yes');
}
function OpenHouse(myURL) {
openWindow(myURL, 480, 350, 'yes');
}
function NewApplicants() {
//openWindow('/cgi-bin/corp.dll/portal/corporate/survey/embark_pop.jsp', 625, 495, 'yes');
//window.open('/cgi-bin/corp.dll/portal/corporate/survey/embark_pop.jsp','MyWindow');
window.open('/cgi-bin/corp.dll/portal/ep/embark.do','MyWindow');
}
function ReturningApplicants() {
//openWindow('https://apply.embark.com/mbaedge/UNIVERSITAS/21/', 675, 455, 'yes');
window.open('https://apply.embark.com/mbaedge/UNIVERSITAS/','MyWindow');
}
function OurOffices(myURL) {
openWindow(myURL, 775, 460, 'yes');
}
/*********************/
/* SHORTCUT SNIPPETS */
/*********************/
function shortcut(formObj){
theValue = formObj.options[formObj.selectedIndex].value;
if (theValue == "none") {
formObj.selectedIndex=0;
//return;
} else {
formObj.options[formObj.selectedIndex].selected = true;
//formObj.selectedIndex=theValue;
//theValue = "../" + theValue;
theValue = theValue;
//location = theValue;
//alert("You will be redirected to >> " + theValue);
open(theValue, "_self", "")
window.location=theValue;
}
//formObj.selectedIndex=0;
}