/******************************************************************************************
*  Function                picAgent
*  Description             Randomly pics an agent to do the mlsplugin-signup form
*  
*  
*  Paramaters              
* return val               
*  Author                  Patrick J Donovan webmaster@southcoastsbs.com
*  Date                    12-22-2005
*  Revision History
*
*
*******************************************************************************************/


function picAgent() 
{
var phrasecnt;
var agentEmail;
var url;
agentEmail = new Array


agentEmail[0] = "http://vow.mlspin.com/default.asp?id=57797&PageType=0&PageId=192123";
agentEmail[1] = "http://vow.mlspin.com/default.asp?id=67488";

phraseCnt = agentEmail.length;
randomNum = Math.floor ((Math.random() * phraseCnt))
url = agentEmail[randomNum]
NewWindow(url,'Window','800','600','yes');
}

function NewWindow(url, windowName, w, h, scroll) {
 var winl = (screen.width - w) / 2;
 var wint = (screen.height - h) / 2;
 winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
 win = window.open(url, windowName, winprops);
 if (parseInt(navigator.appVersion) >= 4) { 
     win.window.focus(); 
 }
}




     

