<!--
function clearpassword(){	
	document.getElementById("fakepassword").value = '';
	document.getElementById("topnumber").value = document.getElementById("fakenumber").value;
	document.getElementById("true").style.display="block";
	document.getElementById("fake").style.display="none";
	document.getElementById("toppassword").focus();
}

function clearnumber(){
	if (document.getElementById("topnumber").value == 'Mobile Number'){
		document.getElementById("topnumber").value = '';
	}
}

function isNumberKey(evt){
	 var charCode = (evt.which) ? evt.which : event.keyCode
	 if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;
	
	 return true;
}

function isNotNumberKey(evt){
	 var charCode = (evt.which) ? evt.which : event.keyCode
	 if ((charCode >= 48 && charCode <= 57))
		return false;
	
	 return true;
}

function checklogin(){
	strnum = document.getElementById("topnumber").value;
	if (strnum.length < 8 | strnum =='Mobile Number'){
		document.getElementById("fake").style.display="none";
		document.getElementById("true").style.display="block"; 
		document.getElementById("topnumber").value = '';
 		document.getElementById("topnumber").focus();
		return false;
	}
	
	strpass = document.getElementById("toppassword").value;
	if (strpass.length < 1 | strpass =='Password'){
		document.getElementById("fake").style.display="none";
		document.getElementById("true").style.display="block";  
		document.getElementById("toppassword").value = '';
 		document.getElementById("toppassword").focus();
		return false;
	}
	
}

function swaploginfields(){
	document.getElementById("fake").style.display="none";
	document.getElementById("true").style.display="block"; 
	document.getElementById("topnumber").focus();
}

function copymobvalue(){
	document.getElementById("topnumber").value = document.getElementById("fakenumber").value;	
}

function showuploaddiv(){
	$("#uploadingdiv").slideToggle();	
}

function showtc()
{
	var tc = document.getElementById('tc');
	tc.style.visibility = 'visible';
}

function hidetc()
{
	var tc = document.getElementById('tc');
	tc.style.visibility = 'hidden';
}

function limitText(limitField, limitNum) {
    if (limitField.value.length > limitNum) {
        limitField.value = limitField.value.substring(0, limitNum);
    } 
}

function showitemTooltip(id){
	$(".itemtooltip").hide();
	$("#"+id).fadeIn(); 
}

function hideitemTooltip(id){
	$(".itemtooltip").hide();
}

function notifyWish(id){
	var answer = confirm("You can only add one item to your wish list at a time, so choose carefully. Once you add an item, you will have a time window in which to collect points and claim the gift.  You cannot claim or book any other items until you either claim the gift and 28 days pass from the original booking date or your Wish List booking expires. ")
	if (answer){
		window.location='default.asp?module=account&mode=addtowishlist&id='+id;
	}	
}

function notifyBuyNow(id,filter){
	var answer = confirm("You can only use the REDEEM NOW function for one item per category every 20 days so choose carefully.")
	if (answer){
		window.location='default.asp?module=account&filter='+filter+'&mode=redeem&page=confirmredeem&itemno='+id;
	}	
}

function notifyBuyNowSplash(id,filter){
	var answer = confirm("You can only use the REDEEM NOW function for one Fanta Splash item every 7 days so choose carefully.")
	if (answer){
		window.location='default.asp?module=account&filter='+filter+'&mode=redeem&page=confirmredeem&itemno='+id;
	}	
}

function checkDeliveryMethod(){
	if (document.getElementById("deliverymethod").value=='DELIVERY TO HOME/OFFICE'){
		$("#extrainfo").fadeIn();
		document.getElementById("deliveryaddress").value="";
		document.getElementById("locality").value="-- click here --";
		document.getElementById("deliverynotes").value="";
	} else {
		$("#extrainfo").fadeOut(); 
		document.getElementById("deliveryaddress").value="  ";
		document.getElementById("locality").value="  "; 
		document.getElementById("deliverynotes").value="";
	}
}

function filladdress(){
	if (document.getElementById("useMyCokeAddress").checked){
	document.getElementById("deliveryaddress").value=document.getElementById("mycokeaddress").value;
	document.getElementById("locality").value=document.getElementById("mycokelocation").value;
	}
}
-->

