﻿
var ApplicationPath = "/";

function openWindow(url) {
    var w =  screen.width*0.8;
	var h =  screen.height*0.8;
	var hdl = window.open(url,"newwindow","width="+w+",height="+h+", resizable=yes,scrollbars=yes");			
	return false;
}

function openSchoolLink(ID,exID,path) {     
    var w =  screen.width*0.8;
	var h =  screen.height*0.8;	
	var url = path+"/SchoolsRedirect.aspx?CollegeID="+exID+"&ID="+ID;			
	var hdl = window.open(url,"newwindow","width="+w+",height="+h+", resizable=yes,scrollbars=yes");				     	     		     
	return false;
}    
 
function qSearchEnterPressed(ev){              
    if(!ev) ev =  window.event;                            
    if (ev.keyCode == 13) {             
        qSearch(ApplicationPath);                 
        return false;                          
    }                                   
    return true;  
}              

function  qSearch(path){              
    var searchInput = document.getElementById("InputSearch");                        
    if (!searchInput)
        return;                            
        document.location = path + "/Schools.aspx?selectBy=search&search="+searchInput.value;
}          
