
function Frame() {
if (document.all)
document.body.style.cssText="border: 7 red groove"
}
//check email feild
var testresults 

function checkemail(){ 
var str=document.validation.emailcheck.value 
var filter=/^.+@.+\..{2,3}$/ 

if (filter.test(str)) 
testresults=true 
else { 
alert("Please enter a valid email address!") 
testresults=false 
} 
return (testresults) 
} 

function checkbae(){ 
if (document.layers||document.all) 
return checkemail() 
else 
return true 
} // email check end

//check length of textarea begin
function contact_form_Validator(theForm)
{

  if (theForm.question.value.length > 1000)
  {
    alert("Please enter at most 1000 characters in the \"question\" field.");
    theForm.question.focus();
    return (false);
  }
  return (true);
}//check length of textarea end

// slider begin
//slider's width
var swidth=150

//slider's height
var sheight=250

//slider's speed
var sspeed=2

//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array()
singletext[0]='<div align="center"><font face=Arial size=3 color="white"><b>AMITY PAGE presents:<p><a href="http://partners.ipower.com/z/57/CD2302/"><font color=#FFEB02>Your own Domain Name<br> just for<P><font size=+2> $2.95<BR>per year!</font><p></font><img src="http://partners.ipower.com/42/2302/57" alt="Ipower Domains" border="0"></a></b></font></div>'
singletext[1]='<div align="center"><font face=Arial size=3 color="white"><b><a href="http://partners.ipower.com/z/4/CD2302/"><font color=#FFEB02>Web Hosting <br>from $6.95/month<br> available</font><p><img src="http://partners.ipower.com/42/2302/4" alt="iPowerWeb" border="0"></a></b></font></div>'
singletext[2]='<div align="center"><font face=Arial size=3 color="white"><b>This is great!<br>We will submit your site <br>over 500 engines<p></b></font></div>'
singletext[3]='<div align="center"><font face=Arial size=3 color="white"><b>Enhance your web site<br>with JavaScript effects<p> just for<br><font size=+2> $50.00</font><BR>per script<p></b></font></div>'
if (singletext.length>1)
i=1
else
i=0
function start(){
if (document.all){
ieslider1.style.top=sheight
iemarquee(ieslider1)
}
else if (document.layers){
document.ns4slider.document.ns4slider1.top=sheight
document.ns4slider.document.ns4slider1.visibility='show'
ns4marquee(document.ns4slider.document.ns4slider1)
}
else if (document.getElementById&&!document.all){
document.getElementById('ns6slider1').style.top=sheight
ns6marquee(document.getElementById('ns6slider1'))
}
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
iediv.style.pixelTop=0
setTimeout("iemarquee(iediv)",100)
}
if (iediv.style.pixelTop>=sheight*-1){
iediv.style.pixelTop-=sspeed
setTimeout("iemarquee(iediv)",100)
}
else{
iediv.style.pixelTop=sheight
iediv.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
if (ns4layer.top>0&&ns4layer.top<=sspeed){
ns4layer.top=0
setTimeout("ns4marquee(ns4layer)",100)
}
if (ns4layer.top>=sheight*-1){
ns4layer.top-=sspeed
setTimeout("ns4marquee(ns4layer)",100)
}
else{
ns4layer.top=sheight
ns4layer.document.write(singletext[i])
ns4layer.document.close()
if (i==singletext.length-1)
i=0
else
i++
}
}

function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
ns6div.style.top=0
setTimeout("ns6marquee(ns6div)",100)
}
if (parseInt(ns6div.style.top)>=sheight*-1){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6marquee(ns6div)",100)
}
else{
ns6div.style.top=sheight
ns6div.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
//  End -->

//pop up window
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no, menubar=no, scrollbars, resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}//end pop up window
