<!-- Begin
function ViewImage(ifile,ix,iy,ititle) { 
var win;
var sWidth;
var sHeight;
var NS = (document.layers) ? 1 : 0;
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");
if (NS) {
sWidth = win.innerWidth;
sHeight = win.innerHeight;
} else {
sWidth = win.document.body.clientWidth;
sHeight = win.document.body.clientHeight;
}
if(sWidth!=ix || sHeight!=iy) {
win.close();
setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 2250);
return;
}
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
//win.document.write("<a href="javascript:window.close();">");
win.document.write("<img src=imagens/"+ifile+">");
//win.document.write("</a>");
win.document.write("</div></body></html>");
win.document.close();
}
//  End -->
<!-- Begin
function addbookmark()
{
bookmarkurl="http://www.caribkiteboarding.com/"
bookmarktitle="CaribKiteBoarding"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
//  End -->
<!-- Begin
closetime = 0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=20,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function doPopup() {
url = "";
width = 420;  // width of window in pixels
height = 330; // height of window in pixels
delay = 2;    // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}
//  End -->
function Email() {
rv=window.open("ad_email_news.asp?modo=Email",null,"height=250,width=420,center=1,scroll=0,help=0,status=0");
}
function jProp(w,h) {
   var nWind,nUrlUnid; 
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   nUrlUnid = 'indication.asp' ;
   nWind = window.open(nUrlUnid,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width='+w+',height='+h+',top='+wint+',left='+winl+'');
}
function jSearch(w,h) {
   var nWind,nUrlUnid; 
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   nUrlUnid = 'frSearch.asp' ;
   nWind = window.open(nUrlUnid,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width='+w+',height='+h+',top='+wint+',left='+winl+'');
}
function valida_contact(){
if (document.frContact.name.value ==""){
 alert('Please inform your name.');
 frContact.name.focus();
 return false;
 }
 if(document.frContact.email.value==""){
  alert('Please inform an email.');
  frContact.email.focus;
  return false;} 
 if (document.frContact.email.value.indexOf('@', 0) == -1 ||
      document.frContact.email.value.indexOf('.', 0) == -1) { 
	    alert("Please check your email.");
	    frContact.email.focus();
		return false;
  }
}
function autentica(){

if (confirm('You are login in the administration Area \n Please prepare your login and password for futher confirmation'))
{location.href='administration/default.asp?login='+frLogin.login.value}
}
function jUpload(w,h,tipo,i) {
   var nWind,nUrlUnid; 
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   nUrlUnid = 'frUpload.asp?tipo='+tipo+'&id='+i ;
   nWind = window.open(nUrlUnid,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width='+w+',height='+h+',top='+wint+',left='+winl+'');
}