// javascript
var JQ=jQuery.noConflict();
var currentElement = 'xxxxx';

function qwhois() {
	var domain = JQ('input#qwhois_domainname').val();
	var ext = JQ('#qwhois_tld option:selected').val().substr(1);

	str_url = "/mwhois/mwhois.php?domain="+domain+"&ext="+ext+ '&theme=ajaxshort&dummy=' + new Date().getTime();

	JQ.get(str_url, function(data){
  		if(data=='AVAILABLE') {
  			JQ.cookie('whois',null,{ path: '/' });
  			JQ.cookie('whois',domain+'|'+ext,{ path: '/' });
  			JQ(location).attr('href','/product-selection.html');
  		} else {
  			JQ('#popup-body').html(data);
  			JQ.openPopupLayer({
  				name: "mwhois",
  				width: 600,
  				target: "qwhois_popup",

  			});
  		}
	});

}

function selectProduct(form_id) {
	var str = JQ('input[name=prod_id]:checked').val().split('_');
	var prod = str[0];
	var type = str[1];

	JQ.cookie('_typ',null,{ path: '/' });
	JQ.cookie('_typ',type,{ path: '/' });
	if (prod == 1) {
		JQ(location).attr('href','/web-hosting-quote.html');
	} else {
		JQ(location).attr('href','/server-quote.html');
	}
}


