
/* Show per type
http://www.templatehelp.com/codes/pr_interface.php?cols=2&amp;rows=6&amp;sadult=0&amp;sp=0&amp;bgcolor=%23FFFFFF&amp;type=6&amp;category=0&amp;pr_code=eXX5Td2RpfqyM6c53MHp5W4mK5JC0R
*/

var interface1 = 'cols=2&amp;rows=6&amp;sadult=0&amp;sp=0&amp;bgcolor=%23FFFFFF&amp;';
var interface2='&amp;pr_code=eXX5Td2RpfqyM6c53MHp5W4mK5JC0R';



var interf = 'aff=ayadif&skin=999&bgcolor=%23FFFFFF&';
var interf2='&pr=yes&locale=en&src=yes&nt=no';


/*show individual template
http://www.templatehelp.com/codes/pr_interface.php?bgcolor=%23ffffff&amp;ft=1&amp;number=12672&amp;iw=180&amp;ih=220&amp;pr_code=eXX5Td2RpfqyM6c53MHp5W4mK5JC0R
*/

var intempl='bgcolor=%23FFFFFF&amp;ft=1&amp;';
var intempl2='&amp;pr_code=eXX5Td2RpfqyM6c53MHp5W4mK5JC0R';
//original:  var intempl2='&amp;iw=193&amp;ih=283&amp;pr_code=Kr34GuBwrwV0r39z05krV14kb1599B';


function show(typ,cate){
	options = interface1+'type='+typ+'&amp;iw=400&amp;ih=1090&amp;&category='+cate+interface2;
	document.write('<SCRIPT type="text/javascript" language="JavaScript" src="http://www.templatehelp.com/codes/pr_interface.php?'+options+'"> </SCRIPT>');
}


function showtemp(num){
        options = intempl+'number='+num+intempl2;
	document.write('<SCRIPT type="text/javascript" language="JavaScript" src="http://www.templatehelp.com/codes/pr_interface.php?'+options+'"> </SCRIPT>');
}


function showlib(cate){
	options = +cate+interf;
	document.write('<SCRIPT type="text/javascript" language="JavaScript" src="http://www.templatehelp.com/codes/interface_cliplib.php?cat='+options+'"> </SCRIPT>');
}



function showfeat(typ,cate){
	options = intempl+'ft='+typ+'&ftt='+cate+intempl2;
	document.write('<SCRIPT TYPE="text/javascript" language="JavaScript" src="http://www.templatehelp.com/codes/interface.php?'+options+'"> </SCRIPT>');
}



// validate contact form before entries before submission:

var submitted = new Boolean(false);

function validate1(f) {
    if (f.Name.value == '') {
	alert('Please specify your name.');
	f.Name.focus();
	return;
	}
   
    if (f.content.value == '') {
	alert('Please write your inquiry and the content of your request.');
	f.content.focus();
	return;
	}

if (f.security.value != '5') {
	alert('Please Enter the total of two number.');
	f.security.focus();
	return;
	}

    if (submitted == true) {
	alert('Please be patient...');
	return;
	}
    submitted = true;
    f.submit();
    }



// validate get quote form before entries before submission:

var submitted = new Boolean(false);

function validate2(f) {
    if (f.f01_Client_name.value == '') {
	alert('Please specify your name or handle.');
	f.name.focus();
	return;
	}
   
   if (f.f09_phone.value == '') {
	alert('Please specify your contact phone number.');
	f.f09_phone.focus();
	return;
	}

 
   if (f.f40_when_site_finished.value == '') {
	alert('Please specify when you need your website to be done.');
	f.f40_when_site_finished.focus();
	return;
	}

if (f.security.value != '5') {
	alert('Please Enter the total of two number.');
	f.security.focus();
	return;
	}

   if (submitted == true) {
	alert('Please be patient...');
	return;
	}
    submitted = true;
    f.submit();
    }

