var xreposition=100;
var yreposition=300; //normal repositioning, can be overwritten at page level
function validate()
{
var message="";
message=message + isValidStr(document.special_offer_form.Full_Name,'your Full Name');
message=message + isValidNum(document.special_offer_form.Phone,'your Phone Number');
message=message + isValidEmail(document.special_offer_form.Email);

	if (message!="") {
		alert(message);
		return false;
	} else {
                document.special_offer_form.submit();
		return true;
	}
}

function HideThis () {
document.getElementById('special_offer_item').style.visibility="hidden";
}

function OpenSpecial(showtext,event) {
var iReturnValue = 0;
var xReturnValue = 0;
while( event != null ) {
iReturnValue += event.offsetTop;
xReturnValue += event.offsetLeft;
event = event.offsetParent;
}

iReturnValue=iReturnValue-yreposition;
xReturnValue=xReturnValue-xreposition;
  if(document.all){
            //thisbrowser="ie"
	document.all.special_offer_item.style.top=iReturnValue + "px";
	document.all.special_offer_item.style.left=xReturnValue + "px";
	document.all.special_offer_item.style.visibility = "visible";
	
  }
  if(!document.all && document.getElementById){
            //thisbrowser="NN6"; 
	document.getElementById("special_offer_item").style.top=iReturnValue + "px";
	document.getElementById("special_offer_item").style.left=xReturnValue + "px";
	document.getElementById("special_offer_item").style.visibility = "visible";
  }
  if (showtext != 'none') {
document.getElementById('Offer').value=showtext;
}
}