function GetNamePage() {
	var refurl=document.referrer;
	var np=refurl.split('/');
	var j=np.length;
	return np[j-1];
}

function ReloadSearchPage() {
	var seaurl=document.location.href;
	var np=seaurl.split('?');
	var j=np.length;
	var s=np[j-1];
	switch (s) {
		case "website":
			s="website.html";
			break;
		case "flash":
			s="flash.html";
			break;
		case "flash_intro":
			s="flash_intro.html";
			break;
		case "wordpress":
			s="wordpress.html";
			break;
		case "commerce":
			s="oscommerce.html";
			break;
		case "contact":
			s="contact.html";
			break;
		default:
			if (s==document.location.href) {s="main.html";} else {s="search.html?"+s;}
			break;
	}
	document.getElementById("ifrMain").src=s;
	return true;
}
