function addToBasket(strSKU, strOrigin){
	var strOrigin = strOrigin;
	strOrigin = strOrigin.replace("&", "*")
	var strURL = "processing/addToBasketProcessing.asp?strProductSKU=" + strSKU;
	strURL += "&intQTY=1";
	strURL += "&strOrigin=" + strOrigin;
	window.location= strURL ;
}
function fn_goToPage(pageNo){
	document.searchForm.Page.value = pageNo;
	document.searchForm.submit();
}

function fn_addToBasket(strSKU, strOrigin, intQuantity){
	var strOrigin = strOrigin;
	strOrigin = strOrigin.replace("&", "*")
	//var strProductQTY = "QTY-" + intId;
	var intQTY = document.getElementById(intQuantity).value;
	
	if(intQTY <= 0 || intQTY != parseInt(intQTY)){
		alert('Please add a valid quantity');
	}
	else{
		var strURL = "processing/addToBasketProcessing.asp?strProductSKU=" + strSKU;
		strURL += "&intQTY=" + intQTY;
		strURL += "&strOrigin=" + strOrigin;
		window.location= strURL ;
	}
}
function validForm(){
	if(document.payWUion.strMTCN.value==''){alert('please add MTCN number'); return false;}
	document.payWUion.submit();
	}
function getDetails(strSKU){
	var strURL = "details.asp?strSKU=" + strSKU;	
	window.location = strURL;
}

function removeItem(strSKU){
	strURL = "processing/removeFrombasket.asp?strSKU=" + strSKU;
	window.location = strURL;
}

function showFullImage(arg){
	var strImagePath = arg;
	//alert(strImagePath);
	window.open(strImagePath,'','')
}

function fnSendMessage()
{
	document.sendMessage.sendB.disabled=true;
	if(document.sendMessage.strSubject.value==''){alert('please add subject');document.sendMessage.sendB.disabled=false; return false;}
		if(document.sendMessage.strMessage.value==''){alert('please add message');document.sendMessage.sendB.disabled=false; return false;}
	document.sendMessage.submit();
	}

function fnSendStory()
{
	document.sendMessage.sendB.disabled=true;
		if(document.sendMessage.strMessage.value==''){alert('please add your story');document.sendMessage.sendB.disabled=false; return false;}
	document.sendMessage.submit();
	}

