//Book mark the current site
function addbookmark()
	{
	netscape="Mozzila user's hit CTRL+D to add a bookmark to this site."
	opera="Opera user's hit CTRL+T to add a bookmark to this site."
	if (navigator.appName=='Microsoft Internet Explorer')
		{
			window.external.AddFavorite(self.location.href , document.title);
		}
	else if (navigator.appName=='Netscape')
	{
	alert(netscape);
	}
		else if (navigator.userAgent.indexOf('Opera') >= -1)
		{
		alert(opera);
		}
}

 function contactUs(newWindow){
	 var newWindow = "http://resource.tcicollege.edu/apply/contact1.asp" 
	window.open(newWindow,"","width=600,height=400, status=no, scrollbars")
	}
  
//Display the curriculum for the current major in a new window by passing parameter m(major)
function curriculum(popurl,q){
	var page = self.location.href
	var newWindow = "../../curriculum.asp?m=" 
	window.open(newWindow+page,"","width=600,height=450,scrollbars, status=no")
	}

//Email this page to a friend 
function friend(newWindow,page){
	var page = self.location.href
	//var newWindow = "../../friend/?m=" 
	var newWindow = "../../../friend/?m=" 
	window.open(newWindow+page,"","width=340,height=335, scrollbars, resizable, location")<!-- , location, address, resizable-->
	}
	
function contact(newWindow){
	var newWindow = "http://resource.tcicollege.edu/apply/contact.asp" 	//actual 
	//var newWindow = "http://localhost/tci college/apply/contact.asp"
	window.open(newWindow,"","width=600,height=400, status=no, scrollbars")
	}
	
//This function is used for the links on the events page. 
function popitup(url)
{
	newwindow=window.open(url,'events','height=400,width=600, scrollbars');
}

//This is for the 123 campaign. Calendar 
function popitup2(url)
{
	newwindow=window.open(url,'cal','height=545,width=600, resizable');
}

//This is for the 'Stay in the game' campaign. Pre-scheduling Registration Calendar 
function popitup4(url)
{
	newwindow=window.open(url,'cal','height=425,width=600');
}

//This is for the Info.asp page that has instructions on what to bring to register
function popitup3(url)
{
	newwindow=window.open(url,'info','height=455,width=600, resizable');
}

//This function is used for any employment oppertunities found on the home page
function employ(url)
{
	newwindow=window.open(url,'name','height=600,width=600, scrollbars, resizable');
}

function ssp(popurl,q){
	var newWindow = "ssp.htm" 
	window.open(newWindow,"ssp","scrollbars, width=500,height=230")
	}
	
	
function openChat(){
	var chatURL = "https://admin.instantservice.com/links/5954/15656" 
	window.open(chatURL,"chat","scrollbars, width=500,height=350")
}

function openWindow(url,w,h,tb,stb,l,mb,sb,rs,x,y){
/*
url - The URL of the page to open. Example: "http://scriptasylum.com". 
w - The width of the window in pixels. 
h - The height of the window in pixels (doesn't include menubars). 
tb - Toolbar visible? 1 = yes, 0 = no. 
stb - Status bar visible? 1 = yes, 0 = no. 
L - Linkbar visible? 1 = yes, 0 = no. 
mb - Menubar visible? 1 = yes, 0 = no. 
sb - Scrollbars visible? 1 = yes, 0 = no. 
rs - Resizable window? 1 = yes, 0 = no. 
x - The horizontal position of the window from the left of the screen. 
y - The vertical position of the window from the top of the screen. 
*/
var t=(document.layers)? ',screenX='+x+',screenY='+y: ',left='+x+',top='+y; //A LITTLE CROSS-BROWSER CODE FOR WINDOW POSITIONING
tb=(tb)?'yes':'no'; stb=(stb)?'yes':'no'; l=(l)?'yes':'no'; mb=(mb)?'yes':'no'; sb=(sb)?'yes':'no'; rs=(rs)?'yes':'no';
var x=window.open(url, 'newWin'+new Date().getTime(), 'scrollbars='+sb+',width='+w+',height='+h+',toolbar='+tb+',status='+stb+',menubar='+mb+',links='+l+',resizable='+rs+t);
x.focus();
}

