var strBasePath = String("http://www.agawamlittleleague.com/");
var strNavImagePath = String("images/baseball.gif");
//var strLogoImagePath = String("images/bg_mlb_tile.gif");
//var strLogoImagePath = String("images/sign.jpg");
var strLogoImagePath = String("images/agalogo.jpg");


var slideshow_width='192px' //SET IMAGE WIDTH
var slideshow_height='61px' //SET IMAGE HEIGHT
var pause=2900 //SET PAUSE BETWEEN SLIDE (2900=3 seconds)
var fadeimages=new Array()
var preloadedimages=new Array()
var ie4=document.all
var dom=document.getElementById
var curpos=10
var degree=10
var curcanvas="canvas0"
var curimageindex=0
var nextimageindex=1

//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]="Images/CCCClogo.gif"
fadeimages[1]="Images/BlackBkgrd.jpg"
fadeimages[2]="Images/CRWLandscapes.jpg"
fadeimages[3]="Images/BlackBkgrd.jpg"
fadeimages[4]="Images/AllenLawnmower.jpg"
fadeimages[5]="Images/BlackBkgrd.jpg"
fadeimages[6]="Images/FitnessFirst.jpg"
fadeimages[7]="Images/BlackBkgrd.jpg"
fadeimages[8]="Images/Frigos.jpg"
fadeimages[9]="Images/BlackBkgrd.jpg"
fadeimages[10]="Images/ResponsTruck.jpg"
fadeimages[11]="Images/BlackBkgrd.jpg"
fadeimages[12]="Images/SaratFord.jpg"
fadeimages[13]="Images/BlackBkgrd.jpg"
fadeimages[14]="Images/Simmons.jpg"
fadeimages[15]="Images/BlackBkgrd.jpg"
fadeimages[16]="Images/SixFlagsNewEngland.gif"
fadeimages[17]="Images/BlackBkgrd.jpg"
fadeimages[18]="Images/SoundSeal.jpg"
fadeimages[19]="Images/BlackBkgrd.jpg"
fadeimages[20]="Images/Southworth.jpg"
fadeimages[21]="Images/BlackBkgrd.jpg"
fadeimages[22]="Images/TeddyBearPoolsandSpas.jpg"
fadeimages[23]="Images/BlackBkgrd.jpg"
fadeimages[24]="Images/WestfieldBank.jpg"
fadeimages[25]="Images/BlackBkgrd.jpg"
fadeimages[26]="Images/longo.jpg"
fadeimages[27]="Images/BlackBkgrd.jpg"
fadeimages[28]="Images/KellerWilliams.jpg"
fadeimages[29]="Images/BlackBkgrd.jpg"
fadeimages[30]="Images/HeatDoctor.jpg"
fadeimages[31]="Images/BlackBkgrd.jpg"
fadeimages[32]="Images/OConnells.jpg"
fadeimages[33]="Images/BlackBkgrd.jpg"
fadeimages[34]="Images/BNBInc.jpg"
fadeimages[35]="Images/BlackBkgrd.jpg"
fadeimages[36]="Images/PhippsDiscountLiquors.jpg"
fadeimages[37]="Images/BlackBkgrd.jpg"
fadeimages[38]="Images/cnctools.jpg"

if (ie4||dom)
window.onload=startit
else
setInterval("rotateimage()",pause);


function fadepic(){
if (curpos<100){
         curpos+=10
         if (tempobj.filters)
                        tempobj.filters.alpha.opacity=curpos
        else if (tempobj.style.MozOpacity)
tempobj.style.MozOpacity=curpos/100
}
else{
clearInterval(dropslide)
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj.innerHTML='<img src="'+fadeimages[nextimageindex]+'">'
nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0
setTimeout("rotateimage()",pause)
}
}

function rotateimage(){
if (ie4||dom){
resetit(curcanvas)
var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
var temp='setInterval("fadepic()",50)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else
document.images.defaultslide.src=fadeimages[curimageindex]
curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0
}

function resetit(what){
curpos=10
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
if (crossobj.filters)
crossobj.filters.alpha.opacity=curpos
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=curpos/100
}

function startit(){
//var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
//crossobj.innerHTML='<img src="'+fadeimages[curimageindex]+'">'
//rotateimage()
}


function bldBanner(strPageTitleIn)
{

for (p=0;p<fadeimages.length;p++){
preloadedimages[p]=new Image()
preloadedimages[p].src=fadeimages[p]
}
//document.write(" 		<map name='FPMap0'><area href='http://www.agawamlittleleague.com/logon/logonALL.asp' shape='rect' coords='20, 9, 54, 39'></map> ");
//document.write("        <tr bgcolor='000000'  width='100%' height='66px'>" );
//document.write("                <td width='812px' colspan='2'><img src=" + strLogoImagePath + " alt='images/agalogolong.jpg' height='66px' width='900px' usemap='#FPMap0' border='0'></td>  ");
document.write("        <tr bgcolor='000000' width='100%' height='66px'>" );
document.write("                <td width='912px' colspan='2'><img src=" + strLogoImagePath + " alt='images/agalogoLong.jpg' height='66px' width='900px'></td>");

//document.write("                <td align='center' valign='center' width='654px'>");
//document.write("                      <h1>");
//document.write("                          <font face='Arial' size='4' color='FFFFFF'>");
//document.write(strPageTitleIn);
//document.write("                          </font>");
//document.write("                        </h1>");  
//document.write("                </td>");
document.write("                <td width='192px' rowspan='2' bgcolor='#2F9706' align='center' background='images/greenbkgrnd.jpg'>&nbsp;");
//Fade-in image slideshow- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use
//     document.write("<a href="http://www.prepsportswear.com/team/us/Massachusetts/FEEDING_HILLS/Agawam-Little-League--Agawam-Little-League-Baseball/Redirector.aspx?schoolid=2066494&settracking=1&utm_source=teamstoreadmin&utm_campaign=teamstoreadmin&utm_content=teamstoreadmin+link&utm_medium=link&utm_term=link&rmd=30144772" title="Gear">SHOP APPAREL HERE</a>");
//if (ie4||dom)
//document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div  id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div></div>')
//else
//document.write('<img name="defaultslide" src="'+fadeimages[0]+'">')
//document.write("                  <a href='http://www.prepsportswear.com/team/us/Massachusetts/FEEDING_HILLS/Agawam-Little-League--Agawam-Little-League-Baseball/Redirector.aspx?schoolid=2066494&settracking=1&utm_source=teamstoreadmin&utm_campaign=teamstoreadmin&utm_content=teamstoreadmin+link&utm_medium=link&utm_term=link&rmd=30144772' title='Gear' target='_blank'>SHOP FOR AGAWAM LITTLE LEAGUE APPAREL HERE</a>");
document.write("                </td>");
document.write("        </tr>");
}

function bldHomePageBanner(strPageTitleIn)
{

//for (p=0;p<fadeimages.length;p++){
//preloadedimages[p]=new Image()
//preloadedimages[p].src=fadeimages[p]
//}
document.write(" 		<map name='FPMap0'><area href='http://www.agawamlittleleague.com/logon/logonALL.asp' shape='rect' coords='20, 9, 54, 39'></map> ");
document.write("        <tr bgcolor='000000'  width='100%' height='66px'>" );
document.write("                <td width='812px' colspan='2'><img src=" + strLogoImagePath + " alt='images/agalogolong.jpg' height='66px' width='900px' usemap='#FPMap0' border='0'></td>  ");
document.write("                <td width='192px' rowspan='2' align='center'>");
document.write("                  <a href='http://www.prepsportswear.com/team/us/Massachusetts/FEEDING_HILLS/Agawam-Little-League--Agawam-Little-League-Baseball/Redirector.aspx?schoolid=2066494&settracking=1&utm_source=teamstoreadmin&utm_campaign=teamstoreadmin&utm_content=teamstoreadmin+link&utm_medium=link&utm_term=link&rmd=30144772' title='Click to shop for Agawam Little League apparel' target='_blank'><IMG SRC='images/Shopping3.JPG' height='115px' /></a>");
document.write("                </td>");
document.write("        </tr>");
}

//****************************************************************************
function bldNav()
{
var border_height = "322px";
document.write("       <table border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFF0' valign='top' width='160px'>  ");
document.write("         <tr>");  
//document.write("                         <td><img src='images/topLeftBorder_wc.jpg' height='15px' width='15px'></td>");  
document.write("                         <td><img src='images/topleftcorner.gif' height='15px' width='15px'></td>");  
document.write("                         <td><img src='images/topBorder.jpg' height='15px' width='140px'></td>");  
document.write("                         <td><img src='images/topRightBorder_wc.jpg' height='15px' width='15px'></td>");  
document.write("           </tr>");  
document.write("         <tr>");  
document.write("                  <td><img src='images/leftBorder.jpg' height='" + border_height + "' width='15px'></td>");  
document.write("                  <td valign='top'>");
document.write("                <table width='140px' cellpadding='0' cellspacing='0' border='0' valign='top'>");   
document.write("                           <tr height='20px' valign='top'>");  
document.write("                                    <td><a href='default.asp'> <img src=" + strNavImagePath + " border='0' height='20px width='20px' alt='Home'> </a></td>");  
document.write("                                    <td width='2' ></td>");  
document.write("                                     <td><a href='default.asp'> <font face='Helvetica' size=2 color='000000'> <b>Home</b></font></a></td>");  
document.write("                           </tr>");  
document.write("                            <tr height='20px' valign='top'>");  
document.write("                                    <td><a href='2005Schedules.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Calendar'></a> </td>");  
document.write("                                    <td width='2'></td>");  
document.write("                                    <td><a href='2005Schedules.htm'> <font face='Helvetica' size=2 color='000000'><b>Schedules</b></font></a></td>");  
document.write("                            </tr>");  
//document.write("                            <tr height='20px' valign='top'>");  
//document.write("                                    <td><a href='2005Calendar.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Calendar'></a> </td>");  
//document.write("                                    <td width='2' ></td>");  
//document.write("                                    <td><a href='2005Calendar.htm'> <font face='Helvetica' size=2 color='000000'> <b>Calendar</b></font></a></td>");  
//document.write("                            </tr>");  
document.write("                            <tr height='20px' valign='top'>");  
document.write("                                   <td><a href='TeamMenu.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Teams'></a> </td>");  
document.write("                                   <td width='2' ></td>");  
document.write("                                   <td><a href='TeamMenu.htm'> <font face='Helvetica' size=2 color='000000'> <b>Teams</b></font></a></td>");  
document.write("                           </tr>");  
document.write("                           <tr height='20px' valign='top'>");  
document.write("                                  <td><a href='BlankPage.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Divisions'> </td>");  
document.write("                                  <td width='2' ></td>");  
document.write("                                   <td><a href='BlankPage.htm'> <font face='Helvetica' size=2 color='000000'> <b>Divisions</b></font></a></td>");  
document.write("                          </tr>");  
document.write("                          <tr height='20px' valign='top'>");  
document.write("                                  <td><a href='locations.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Locations'> </a></td>");  
document.write("                                   <td width='2' ></td>");  
document.write("                                   <td><a href='locations.htm'> <font face='Helvetica' size=2 color='000000'> <b>Locations</b></font></a></td>");  
document.write("                          </tr>");  
document.write("                           <tr height='20px' valign='top'>");  
document.write("                                  <td valign='top'><a href='2006Board.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Board of Directors'></a> </td>");  
document.write("                                  <td width='2' ></td>");  
document.write("                                  <td><a href='2006Board.htm'> <font face='Helvetica' size=2 color='000000'> <b>Board of Directors</b></font></a></td>");  
document.write("                           </tr>");  
document.write("                          <tr height='20px' valign='top'>");  
document.write("                                  <td><a href='Albums/album.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Picture Gallery'></a> </td>");  
document.write("                                  <td width='2' ></td>");  
document.write("                                  <td><a href='Albums/album.htm'> <font face='Helvetica' size=2 color='000000'> <b>Picture Gallery</b></font></a></td>");  
document.write("                          </tr>");  
document.write("                          <tr height='20px' valign='top'>");  
document.write("                                  <td><a href='handouts.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Handouts'></a> </td>");  
document.write("                                  <td width='2' ></td>");  
document.write("                                  <td><a href='handouts.htm'> <font face='Helvetica' size=2 color='000000'> <b>Handouts</b></font></a></td>");  
document.write("                          </tr>");  
document.write("                          <tr height='20px' valign='top'>");  
document.write("                                  <td><a href='futureSportsWriters.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Future Sports Writers'> </td>");  
document.write("                                   <td width='2' ></td>  ");
document.write("                                   <td><a href='futureSportsWriters.htm'> <font face='Helvetica' size=2 color='000000'> <b>Future Sports Writers</b></font></a></td>");  
document.write("                         </tr>");  
document.write("                        <tr height='20px' valign='top'>");  
document.write("                                 <td><a href='PriorSeasons.asp'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Prior Seasons'></a> </td>");  
document.write("                                 <td width='2' ></td>");  
document.write("                                 <td><a href='PriorSeasons.asp'> <font face='Helvetica' size=2 color='000000'> <b>Prior Seasons</b></font></a></td>");  
document.write("                       </tr>");  
document.write("                       <tr height='20px' valign='top'>");  
document.write("                                <td><a href='2005Sponsors.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='2005 Sponsors'> </a></td>");  
document.write("                                <td width='2' ></td>");  
document.write("                                <td><a href='2005Sponsors.htm?pageName='sponsors'> <font face='Helvetica' size=2 color='000000'> <b>2005 Sponsors</b></font></a></td>");  
document.write("                      </tr>");  
document.write("                       <tr height='20px' valign='top'>");  
document.write("                                <td><a href='2005Results.htm'> <img src=" + strNavImagePath + " border='0' height='20' width='20' alt='Results'> </a></td>");  
document.write("                                <td width='2' ></td>");  
document.write("                                 <td><a href='2005Results.htm'> <font face='Helvetica' size=2 color='000000'> <b>Results</b></font></a></td>");  
document.write("                       </tr>");  
document.write("                       <tr height='20px' valign='top'>");  
document.write("                               <td><a href='http://www.littleleague.org' target='_blank'> <img src=" + strNavImagePath + " border='0' height='20' width='20'> </a></td>");  
document.write("                                <td width='2' ></td>");  
document.write("                                <td><a href='http://www.littleleague.org/' target='_blank'> <font face='Helvetica' size=2 color='000000'> <b>Little League</b></font></a></td>");  
document.write("                       </tr>");  
document.write("                </table>");  
document.write("             </td>");  
document.write("             <td><img src='images/rightBorder.jpg' height='" + border_height + "' width='15px'></td>");  
document.write("                                        </tr>");
document.write("        <tr>");  
//document.write("                         <td><img src='images/bottomLeftBorder_wc.jpg' height='15px' width='15px'></td>");  
document.write("                         <td><img src='images/bottleftcorner.gif' height='15px' width='15px'></td>");  
document.write("                         <td><img src='images/bottomBorder.jpg' height='15px' width='140px'></td>");  
document.write("                         <td><img src='images/bottomRightBorder_wc.jpg' height='15px' width='15px'></td>");  
document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td width='15px' height='1px'>&nbsp;</td>");  
//document.write("                         <td width='140px' height='1px'>&nbsp;</td>");  
//document.write("                         <td width='15px' height='1px'>&nbsp;</td>");  
//document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td><img src='images/topLeftBorder_wc.jpg' height='15px' width='15px'></td>");  
//document.write("                         <td><img src='images/topBorder.jpg' height='15px' width='140px'></td>");  
//document.write("                         <td><img src='images/topRightBorder_wc.jpg' height='15px' width='15px'></td>");  
//document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td><img src='images/LeftBorder.jpg' height='20px' width='15px'></td>");  
//document.write("                         <td align='center' width='140px'><font face='Arial' size=3 color='000000'><b>Bomb Squad</b></font></td>");  
//document.write("                         <td><img src='images/RightBorder.jpg' height='20px' width='15px'></td>");  
//document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td><img src='images/LeftBorder.jpg' height='20px' width='15px'></td>");  
//document.write("                         <td align='center'><a href='BombSquad.htm'><font face='Helvetica' size=1 color='000000'><b>2005 Home Run Hitters</b></font></a></td>");  
//document.write("                         <td><img src='images/RightBorder.jpg' height='20px' width='15px'></td>");  
//document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td><img src='images/bottomLeftBorder_wc.jpg' height='15px' width='15px'></td>");  
//document.write("                         <td><img src='images/bottomBorder.jpg' height='15px' width='140px'></td>");  
//document.write("                         <td><img src='images/bottomRightBorder_wc.jpg' height='15px' width='15px'></td>");  
//document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td width='15px' height='1px'>&nbsp;</td>");  
//document.write("                         <td width='140px' height='1px'>&nbsp;</td>");  
//document.write("                         <td width='15px' height='1px'>&nbsp;</td>");  
//document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td><img src='images/topLeftBorder_wc.jpg' height='15px' width='15px'></td>");  
//document.write("                         <td><img src='images/topBorder.jpg' height='15px' width='140px'></td>");  
//document.write("                         <td><img src='images/topRightBorder_wc.jpg' height='15px' width='15px'></td>");  
//document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td><img src='images/LeftBorder.jpg' height='16px' width='15px'></td>");  
//document.write("                         <td align='center' width='140px'><font face='Arial' size=2 color='000000'><b>contact us:</font><b></td>");  
//document.write("                         <td><img src='images/RightBorder.jpg' height='16px' width='15px'></td>");  
//document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td><img src='images/LeftBorder.jpg' height='16px' width='15px'></td>");  
//document.write("                         <td align='center' width='140px'><font face='Arial' size=2 color='000000'><a href='mailto:mpaleo@comcast.net' target='_top' >Mark  Paleologopoulos</a></font></td>");  
//document.write("                         <td><img src='images/RightBorder.jpg' height='16px' width='15px'></td>");  
//document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td><img src='images/LeftBorder.jpg' height='16px' width='15px'></td>");  
//document.write("                         <td align='center' width='140px'><font face='Arial' size=2 color='000000'><a href='mailto:ronnyc@comcast.net' target='_top' >Ronny Carleton</a></font></td>");  
//document.write("                         <td><img src='images/RightBorder.jpg' height='16px' width='15px'></td>");  
//document.write("        </tr>");  
//document.write("        <tr>");  
//document.write("                         <td><img src='images/bottomLeftBorder_wc.jpg' height='15' width='15px'></td>");  
//document.write("                         <td><img src='images/bottomBorder.jpg' height='15px' width='140px'></td>");  
//document.write("                         <td><img src='images/bottomRightBorder_wc.jpg' height='15px' width='15px'></td>");  
//document.write("        </tr>");  
document.write("                        </table>");
}


function getArgs()
{
var args=new Object();
var query = location.search.substring(1);  				 //get query string
var pairs = query.split("&");							 			 	 			  //Break at ampersand

for (var i = 0; i< pairs.length; i++) 
		{
//		  alert("i = " + i + " pairs.length = " + pairs.length);
			var pos = pairs[i].indexOf('=');				 		 				 //look for  name=value
		 
		  if (pos == -1)													 						 				//if no arguments are found
		 		continue;
		  var argname = pairs[i].substring(0,pos);				//extract the name	
//		  alert("name is: " + argname);
		  var value = pairs[i].substring(pos + 1);					//extract the value
	//	  alert("value is: " + value);
		  args[argname] = unescape(value);	 	 						//Store as a property
		}
		return args;																							 //return the object
}		

function bldSubBanner()
{
document.write("        <tr bgcolor='000000'  width='100%' height='66px'>" );
document.write("                <td width='812px' colspan='2'><img src='../" + strLogoImagePath + "' alt='../images/agalogo.jpg' height='66px' width='812px'></td>");
//document.write("                <td align='center' valign='center' width='654px'>");
//document.write("                      <h1>");
//document.write("                          <font face='Arial' size='4' color='FFFFFF'>");
//document.write(strPageTitleIn);
//document.write("                          </font>");
//document.write("                        </h1>");  
//document.write("                </td>");

document.write("        </tr>");
}
function old_daysTill() {
  var day=	2 // Day
  var month=	5 // Month
  var year=	2009 //Year
  var event=	"Opening Day 2009"
  var end = 	"days left until"
  //----------  END OF EDIT  -------------------------------

  var daystocount=new Date(year, month -1, day)
  today=new Date()
  if (today.getMonth()==month && today.getDate()>day)
  daystocount.setFullYear(daystocount.getFullYear())
  var oneday=1000*60*60*24
  var write = (Math.ceil((daystocount.getTime()-today.getTime())/(oneday)))
  document.write('There are <strong>'+write +'</strong> '+end+' '+event)
}

function daysTill(strDate) {
//getDay & getMonth functions start at 0, not the actual date.

	var myDate = new Date(strDate); 
  var day =	myDate.getDate(); // Day
  var month=	myDate.getMonth() + 1 ; // Month
  var year=	myDate.getFullYear(); //Year
  var event=	"Opening Day " + year;
  var end = 	"days left until";
	
  //----------  END OF EDIT  -------------------------------

  var daystocount=new Date(year, month -1, day)
  today=new Date()
  if (today.getMonth()==month && today.getDate()>day)
  daystocount.setFullYear(daystocount.getFullYear())
  var oneday=1000*60*60*24
  var write = (Math.ceil((daystocount.getTime()-today.getTime())/(oneday)))
  document.write('There are <strong>'+write +'</strong> '+end+' '+event)

}

function getContacts(name)
{
switch  (name)
{
 case "Mark Paleologopoulos" :
	 user = "mpaleo";
	 site = "comcast.net";
   break;
 case "Ronny Carleton":
	 user = "ronny_c";
	 site = "comcast.net";
   break;
 case "Rick Sheehan":
	 user = "3sheehans";
	 site = "comcast.net";
   break;
}

function checkForScript(strInput)
{
if (strInput.indexOf("<script>") != -1)
{
	 checkForScript = "True";
}
elseIf (strInput.indexOf("<iframe>") != -1)
{
	 checkForScript = "True";
}
elseIf (strInput.indexOf(".php") != -1)
{
	 checkForScript = "True";
}
else
{
	 checkForScript = "False";
}
}
//document.write("<a href='mailto:" + user + "@" + site + " target='_top' >" + name + "</a>");
document.write('<a href=\"mailto:' + user + '@' + site + '\">');
document.write(name + '</a>');

}
