function campus_tour (){
window.open('/multimedia/campus_tour/campus.aspx','pop10','width=600,height=325');
}

function city_tour (){
window.open('/multimedia/city_tour/city.aspx','pop11','width=600,height=325');
}

function fa_video (){
window.open('/schools/ctu/Controls/multimedia/fa_video.aspx','pop12','width=600,height=325');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0  Used to open dreamweaver generic pop ups
  window.open(theURL,winName,features);
}

function mobile_closeup (){
window.open('http://www.ctuonline.edu/ctumobile/closeup.aspx','blank','width=320,height=445 menubar=no,toolbar=no,resizable=no');
}

function mobile_tour (){
window.open('http://www.ctuonline.edu/ctumobile/video_tour.aspx','blank','width=465,height=535 menubar=no,toolbar=no,resizable=yes');
}

//CTU ONLINE WEBMERCIALS

function openwinctu_fin (){
window.open('http://www.ctuonline.edu/multimedia/degrees/finance_webmercial.aspx','pop11','menubar=no,width=450,height=280');
}

function openwinctu_fa (){
window.open('http://www.ctuonline.edu/multimedia/financial_aid/fa_webmercial.aspx','pop11','menubar=no,width=400,height=300');
}

function openwinctu_hrmgmt (){
window.open('http://www.ctuonline.edu/multimedia/degrees/hrmgmt_webmercial.aspx','pop11','menubar=no,width=470,height=250');
}

function openwin_bsit (){
window.open('http://www.ctuonline.edu/multimedia/degrees/bsit_webmercial.aspx','pop11','menubar=no,width=450,height=275');
}

function openwin_bsba_intbus (){
window.open('http://www.ctuonline.edu/multimedia/degrees/bsba_intbus_webmercial.aspx','pop11','menubar=no,width=450,height=275');
}

function openwinctu_projmgt (){
window.open('http://www.ctuonline.edu/multimedia/degrees/projmgt_webmercial.aspx','pop11','menubar=no,width=470,height=250');
}

function openwin_cj (){
window.open('http://www.ctuonline.edu/multimedia/degrees/web_crimjustice.aspx','pop14','menubar=no,width=280,height=486');
}

function openwinctu_hc (){
window.open('http://www.ctuonline.edu/multimedia/degrees/healthcare_webmercial.aspx','pop11','menubar=no,width=400,height=300');
}

function openwin_mba_mktg (){
window.open('http://www.ctuonline.edu/multimedia/degrees/mba_mktg_webmercial.aspx','pop11','menubar=no,width=450,height=275');
}

function openwinctu_mba_techmgmt() {
window.open('http://www.ctuonline.edu/multimedia/degrees/techmgt_webmercial.aspx','mbatech','menubar=no,width=450,height=275');
}

function openwinctu_MBA_InsRskMgmt() {
window.open('http://www.ctuonline.edu/multimedia/degrees/mba_risk_mgmt_webmercial.aspx','mbatech','menubar=no,width=450,height=275');
}

function openwinctu_MBA_LogSCM() {
window.open('http://www.ctuonline.edu/multimedia/degrees/mba_logistics_scm_webmercial.aspx','mbatech','menubar=no,width=450,height=275');
}

function openwinctu_MBA_MDR() {
window.open('http://www.ctuonline.edu/multimedia/degrees/mba_mdr_webmercial.aspx','MBAmdr','menubar=no,width=450,height=275');
}


function openwinsco_asacc (){
window.open('http://www.ctuonline.edu/multimedia/degrees/as_accounting_webmercial.aspx','asacc','menubar=no,width=450,height=300');
}
function openwinsco_asba (){
window.open('http://www.ctuonline.edu/multimedia/degrees/asba_webmercial.aspx','asba','menubar=no,width=450,height=300');
}
/*function openwinsco_asmbc (){
window.open('http://www.stonecliffecollege.com/multimedia/webmercial_asmbc.asp','pop3','menubar=no,width=450,height=300');
}*/
function openwinsco_asit (){
window.open('http://www.ctuonline.edu/multimedia/degrees/asit_webmercial.aspx','asit','menubar=no,width=450,height=300');
}
function openwinctu_AS_ParStu (){
window.open('http://www.ctuonline.edu/multimedia/degrees/asps_webmercial.aspx','aspar','menubar=no,width=450,height=300');
}


function openwinctu_wm (){
window.open('http://www.ctuonline.edu/multimedia/ctuonline_webmercial.aspx','pop1','menubar=no,width=550,height=400');
}

function openwinctu_demo_mkt (){
window.open('http://www.ctuonline.edu/multimedia/degrees/demo_MKT305/ctubus.aspx','pop11','menubar=no,width=750,height=550');
}





function openwin_wowmain (){
window.open('http://www.ctuonline.edu/multimedia/wow/default.aspx','pop1','menubar=no,width=750,height=620');
}
function openwin_wowstudentsupport (){
window.open('http://www.ctuonline.edu/multimedia/wow/student_support.aspx','pop1','menubar=no,width=550,height=400');
}

function openwin_wowclasses (){
window.open('http://www.ctuonline.edu/multimedia/wow/faq_classes.aspx','pop1','menubar=no,width=550,height=400');
}

function openwin_wowprocerts (){
window.open('http://www.ctuonline.edu/multimedia/wow/procerts.aspx','pop1','menubar=no,width=550,height=400');
}

function openwin_wowhowlong (){
window.open('http://www.ctuonline.edu/multimedia/wow/faq_howlong.aspx','pop1','menubar=no,width=550,height=400');
}

function openwin_wowcosts (){
window.open('http://www.ctuonline.edu/multimedia/wow/faq_costs.aspx','pop1','menubar=no,width=550,height=400, resizable=yes');
}

function openwin_wowadmission (){
window.open('http://www.ctuonline.edu/multimedia/wow/faq_admission.aspx','pop1','menubar=no,width=550,height=400,resizable=yes');
}

function openwin_wowaccredit (){
window.open('http://www.ctuonline.edu/multimedia/wow/faq_accredit.aspx','pop1','menubar=no,width=550,height=400,resizable=yes');
}


function openwin_wowdegrees (){
window.open('http://www.ctuonline.edu/multimedia/wow/faq_Degrees.aspx','pop1','menubar=no,width=550,height=400,resizable=yes');
}

function openwin_wowInstructors (){
window.open('http://www.ctuonline.edu/multimedia/wow/faq_Instructors.aspx','pop1','menubar=no,width=550,height=400,resizable=yes');
}

function openwin_wowStudents (){
window.open('http://www.ctuonline.edu/multimedia/wow/faq_Students.aspx','pop1','menubar=no,width=550,height=400,resizable=yes');
}

function openwin_wowVirtualCampus (){
window.open('http://www.ctuonline.edu/multimedia/wow/faq_VirtualCampus.aspx','pop1','menubar=no,width=550,height=400,resizable=yes');
}

function openwin_wowCareerSvc (){
window.open('http://www.ctuonline.edu/multimedia/wow/faq_CareerServices.aspx','pop1','menubar=no,width=550,height=400,resizable=yes');
}

function openwinctu_cs (){
window.open('http://www.ctuonline.edu/multimedia/cs_webmercial.aspx','pop11','menubar=no,width=400,height=300');
}

function open_estimator() {
window.open('http://www.ctuonline.edu/multimedia/financial_aid/estimator.aspx','estimator','width=860,height=700,scrollbars=yes,resizable=yes,menubar=yes,toolbar=yes');
}

function open_pond() {
window.open('http://www.ctuonline.edu/multimedia/wpond/pond.aspx','pond','menubar=no,width=350,height=230');
}

//Application Process

function openlegal (){
    window.open('http://www.ctuonline.edu/legal.htm','legal','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=640,height=400');
}

function openagreelegal (){
    window.open('https://campus.ctuonline.edu/schools/6/pdf/enrollment_agreement.pdf','agreelegal','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=640,height=440');
}

function LaunchMyDocs(gentype) {
    window.open('/apply/MyDoc/default.aspx?gentype='+gentype,'blank','menubar=no,toolbar=no,resizable=yes'); 
    return false;
}


//used from education and referral pages
var isNN = (navigator.appName.indexOf("Netscape")!=-1);
	function autoTab(input,len, e) 
	{
		var keyCode = (isNN) ? e.which : e.keyCode; 
		var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];

		if(input.value.length >= len && !containsElement(filter,keyCode)) 
		{
			input.value = input.value.slice(0, len);
			input.form[(getIndex(input)+1) % input.form.length].focus();
		}

		function containsElement(arr, ele) 
		{
			var found = false, index = 0;
			while(!found && index < arr.length)

			if(arr[index] == ele)
				found = true;
			else
				index++;

			return found;
		}

		function getIndex(input) 
		{
			var index = -1, i = 0, found = false;
			while (i < input.form.length && index == -1)
			if (input.form[i] == input)
				index = i;
			else 
				i++;
			return index;
		}

	return true;
	}
