function search(a)
{
var q = document.getElementById('sv').value;
if (q == "")
{
window.location.assign("index.php?m=search/"+a+"/browse")	
}
else
{
window.location.assign("index.php?m=search/"+a+"/"+q)	
}
}

function search2()
{
var q = document.getElementById('sv').value;
var t = document.getElementById('type').value
if (q == "" && t == "filter")
{
window.location.assign("index.php?m=search/filter")	
}
else if (q == "" && t != "filter")
{
window.location.assign("index.php?m=search/"+t+"/browse")	
}
else
{
window.location.assign("index.php?m=search/"+t+"/"+q)	
}
}

function TG(a, changeTo)
{
a.style.backgroundColor = changeTo;

}

function search3()
{
var make = document.getElementById('Make').value;
var model = document.getElementById('Model').value
//alert(make+'------'+model);
if (make == "0" && model == "0")
{
alert ("Please Select Your Mobile and Model");
}
else
{
//window.location.assign("index.php?m=phone/"+make+"/"+model);
alert ("This Service is In Beta and Recently Closed For Development");	
}

}

