function fadeOut(thisname) {
    //thisname.style.filter="blendTrans(duration=0.5)";
    // Make sure the filter is not playing.
  /*  if (thisname.filters.blendTrans.status != 0.5) {
        thisname.filters.blendTrans.apply();*/
   		thisname.style.visibility="hidden";		
		//thisname.style.display="none";
		/*
        thisname.filters.blendTrans.play();
    }*/
}
function fadeIn(thisname,ref,lid) {
   // thisname.style.filter="blendTrans(duration=0.5)";
	// Make sure the filter is not playing.	
	getCoor(ref,lid);
   /* if (thisname.filters.blendTrans.status != 0.5) {
        thisname.filters.blendTrans.apply();
     */   thisname.style.visibility="visible";
	 //thisname.style.display="block";
	 /*
        thisname.filters.blendTrans.play();
		
    }*/
}
function showMe(xC,yC,lname)
{
	var x = new getObj(lname);
	x.style.top=yC-30;
	x.style.left=xC-5;
	
	
}
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
}
function getCoor(imgId,lid) 
{
	var d = document;
	var x = (d.layers)?d[imgId].x:d[imgId].offsetLeft;
	var y = (d.layers)?d[imgId].y:d[imgId].offsetTop;
	showMe(x,y,lid);
	//alert("x = " + x + "\ny = " + y);
}

function stay(name){
	name.style.visibility="visible";
}

function loadFlash(movie,width,height){
	var flash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">'+' <param name="movie" value="'+movie+'">'+' <param name="quality" value="high">'+' <param name="menu" value="false">'+' <embed src="'+movie+'" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>'+' </object>';
	document.write(flash);
}

function validateForm(f){	
	if(f.realname.value == "" || f.realname.value.length<3){
		alert('Please provide your Name');
		f.realname.focus();
		return false;
	}
	else if(f.email.value == "" || f.email.value.indexOf('@')<=0 || f.email.value.indexOf('.')<=0 || f.email.value.length<=5){
		alert('Please provide a Valid Email');
		f.email.focus();
		return false;
	}
	else if(f.subject.value == "" || f.subject.value.length<=0){
		alert('Please select a Subject');
		f.subject.focus();
		return false;
	}
	else if(f.message.value == ""){
		alert('Please type in your Message');
		f.message.focus();
		return false;
	}
	else{
		return true;
	}
}