function changeCss(id,className)
{document.getElementById(id).className=className;}
function changeCssOut(id,className)
{document.getElementById(id).className=className;}
function showEditProfile()
{document.getElementById('globalForm').editProfile.value='editProfile';document.getElementById('globalForm').action=HOST_ROOT_PATH_HTTPS_VAR+'/UserRegistration/';document.getElementById('globalForm').submit();}
function browseFaq(faqCatID,faqID,faqQue)
{var quearray=faqQue.split(" ");var newNam='';if(quearray.length>1)
{for(i=0;i<quearray.length;i++)
{if(i==0)
{newNam=quearray[i];}
else
{newNam=newNam+'-'+quearray[i];}}}
else
{newNam=faqQue;}
$("#faqCatID").attr('value',faqCatID);$("#faqID").attr('value',faqID);$("#globalForm").attr('action',HOST_ROOT_PATH_VAR+"FAQ/"+newNam+"/");$("#globalForm").submit();}
function ourCrowd()
{document.globalForm.ourCrowdHidden.value="ourCrowd"
document.globalForm.action=HOST_ROOT_PATH_VAR+'our-crowd/';document.globalForm.submit();}
function buyNow()
{document.BuyNowFrm.action=HOST_ROOT_PATH_VAR+'Buy-Now/';document.BuyNowFrm.submit();}
$(document).ready(function(){var colorFade=function(h1,h2,p){return((h1>>16)+((h2>>16)-(h1>>16))*p)<<16|(h1>>8&0xFF)+((h2>>8&0xFF)-(h1>>8&0xFF))*p<<8|(h1&0xFF)+((h2&0xFF)-(h1&0xFF))*p;}
var segments=$("#segments").val();var hex1=$("#hex1").val();var hex2=$("#hex2").val();var colorCode='';for(var i=0;i<segments;i++)
{if(colorCode=='')
colorCode=colorFade(hex1,hex2,i/segments).toString(16);else
colorCode=colorCode+','+colorFade(hex1,hex2,i/segments).toString(16);}
$("#colorCode").val(colorCode);});
