//Pop ups  - - pop up will be undetected by pop up blocker


//See instructions below//

//opens new window
var win = null;
function popWin(mypage,myname,w,h,scroll){  
//LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
//TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

LeftPosition = 10;
TopPosition = 10;

settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
win = window.open(mypage,myname,settings);
}


//opens new window in Center Screen
function popUpWinCenter(mypage,myname,w,h,scroll){  
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
win = window.open(mypage,myname,settings);
}




/*

Instructions to PopUpWin
=========================


I. PARAMETERS

mypage = this.href  !!Should always equal 'this.href' or pop up will not work.
myname = name of new window
w = width
h = height
scroll = yes/no value
redirect = direct url to redirect page - where the page with the pop up link will go to after implementing the pop up



II. HOW TO IMPLEMENT**


1. Placng PopUp Function
This code should be places anywhere before the link, preferably between the <head></head>.

SAMPLE: 
<script language="JavaScript" src="http://www.collegesports.com/bowls/blockerPopUp.js"></script>




2. Link 
The pop up window should be set in the <a href> tag in HTML document. 
See full example see sample below: 

SAMPLE:
<a href="04bowls-popup.html" onClick="popUpWin(this.href,'bowls','750','550','yes','04bowls-test.html'); return false;">i want to see every bowl game</a>
*/