	//-------------------------------------------------------
	//Login Function
	function pf() {
			alert("The service you have selected requires you to sign into your account.");
			return;
	}

	function pf_location() {
			alert("The service you have selected requires you to sign into your account.");
			var pop_login = window.open("/popup/pop-login.asp" , "login_win", "width=500, height=360, scrollbars=no");
			pop_login.focus();
	}

	function loginPop() {
			var pop_login = window.open("/popup/pop-login.asp" , "login_win", "width=500, height=360, scrollbars=no");
			pop_login.focus();
	}

	function loginPop_ssl(response_url) {
			var pop_login = window.open("/popup/pop-login.asp?response_url="+response_url, "login_win", "width=500, height=360, scrollbars=yes");
			pop_login.focus();
	}
	//-------------------------------------------------------
	//Input Only Number Check
	function chk_number() {
		  var keycode = event.keyCode;
		  
		  if (keycode==144 || keycode==96 || keycode==13 || keycode==46 || keycode==110 || keycode==8 || keycode==9 || keycode==190 || keycode>=37 && keycode<=40 || keycode>=48 && keycode<=57 || keycode>=97 && keycode<=105) {		
			return true; }
		  else if (keycode < 48 || keycode > 57) {
			return false; } 
	}
	//-------------------------------------------------------
	//Current Page Print Function 
	var initBody 
	function beforePrint() { 
		  initBody = document.body.innerHTML; 
		  document.body.innerHTML = contents.innerHTML; 
	}
	
	function afterPrint() { 
		  document.body.innerHTML = initBody; 
	}
	
	function printArea() {
		var temp_array = new Array();
		var temp;

		temp_array[0] = "Scrap_print";
		temp_array[1] = "add_this";
		temp_array[2] = "quick";

		for(i=0;i<3;i++) {
			temp = "document.getElementById('" + temp_array[i] + "')";
			if (eval(temp))
			{
				eval(temp).style.display = "none";
			}
		}		

		window.print();

		for(i=0;i<3;i++) {
			temp = "document.getElementById('" + temp_array[i] + "')";
			if (eval(temp))
			{
				eval(temp).style.display = "";
			}
		}
	}	
	window.onbeforeprint = beforePrint; 
	window.onafterprint = afterPrint;
	//-------------------------------------------------------
	//Clipboard Copy URL Function 
	function rss_copyurlClipboard(url) {			
			var form = document.getElementById('rss_form');
			var rssc = form["rss_clipboard"];

			rssc.value = getHostRss() + url;
		
			var meintext = rssc.value;
			
			if (window.clipboardData) {
				window.clipboardData.setData("Text", meintext);
				alert('The URL has been copied to your clipboard\n');
			}
	}
	//-------------------------------------------------------
	//Clipboard Copy Content Function
	function rss_copycontentClipboard() {			
			var form = document.getElementById('contents').innerHTML;;
			var meintext = form;
			
			if (window.clipboardData) {
				window.clipboardData.setData("Text", meintext);
				alert('The Scrap has been copied to your clipboard');
			}
	}
	//-------------------------------------------------------
	//Http MainURL Function 
	function getHostRss() {
			var Dns = location.href;
			Dns = Dns.split("//");
			Dns = "http://" + Dns[1].substr(0, Dns[1].indexOf("/"));
		
			return Dns;
	}
	//-------------------------------------------------------
	//Email Select Function
	function email_select(email_value) {
		forms = document.mainForm;
		if (email_value == "") {
			forms.email_2.readOnly = false;
			forms.email_2.value="";
			forms.email_2.focus();
			return ;
		}
		else {
			forms.email_2.value=email_value;
			forms.email_2.readOnly = true;
			return ;
		}
	}
	//-------------------------------------------------------
	//Email Check Function	
	function checkEmail(email) { 
	   var arrMatch = email.match(/^(\".*\"|[A-Za-z0-9_-]([A-Za-z0-9_-]|[\+\.])*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z0-9][A-Za-z0-9_-]*(\.[A-Za-z0-9][A-Za-z0-9_-]*)+)$/); 
			 if (arrMatch == null) { 
				  return false; 
			 } 
				 var arrIP = arrMatch[2].match(/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/); 
			 if (arrIP != null) { 
					  for (var i = 1; i <= 4; i++) { 
								if (arrIP[i] > 255) { 
									 return false; 
								} 
					  } 
			  } 
			  return true; 
	}
	//-------------------------------------------------------
	//product zoom Popup		
	function ZoomProduct(imgName, PName){
		window.open('/product/pop01.asp?imgName='+imgName+"&PName="+PName,'','width=460, height=530')
	}
	//-------------------------------------------------------
	
	//-------------------------------------------------------
	//product ,info Popup		
	function Zoominfo(imgUrl,imgName, width, height){		
		widthVal = eval(parseInt(width) + 80);
		heightVal = eval(parseInt(height) + 230);
		window.open('/product/pop02.asp?imgName='+imgName+"&Url="+imgUrl,'','width='+widthVal+', height='+ heightVal+'')
	}
	//-------------------------------------------------------
