function getquerystring(qrystr) {
	searchstr = window.location.search.substring(1);
	atsign = searchstr.split("&");
	for (i = 0; i < atsign.length; i++) {
		strvalue = atsign[i].split("=");
		if (strvalue[0] == qrystr) {
			return strvalue[1];
		}
	}
}

function detectBrowser(locstr) {
	var useragent = navigator.userAgent;
	
	if (useragent.indexOf('iPhone') != -1 || useragent.indexOf('Android') != -1) {
		if (getquerystring('full') != "Y") {
			window.location = locstr;
		}
	}
}
