function validateMallname(){
if(document.mallSearch.mallname.value==""){
alert("Please select a mall name to search.");
return false;
}
return true;
}

function validateCategory(){
if(document.categorySearch.category.value==""){
alert("Please select a category to search.");
return false;
}
return true;
}

function validateBrand  (){
if(document.merchandiseSearch.brands.value==""){
alert("Please select a Brand to search.");
return false;
}
return true;
}

function validateShopName()
{
if(document.shopSearch.shopname.value=="")
{
alert("Please enter a shop name.");
return false;
}
return true;
}

function validateFav(){
if(document.favSearch.subcategory.value=="" || document.favSearch.mallname.value==""){
alert("Please select values from both fields.");
return false;
}
return true;
}

function validateRestaurant(){
if(document.speciality.speciality.value==""){
alert("Please select a Restaurant to search.");
return false;
}
return true;
}

function validateSearch(){
if(document.search_form.q.value==""){
alert("Please input some value to search.");
return false;
}
return true;
}


function showText(i){
var init = i;

if (init == 1){
document.getElementById('showData').innerHTML = "<a href='http://www.flickr.com/photos/gurgaonshoppingmalls' target='_blank' title='Visit the amazing photographs of Gurgaon Shopping Malls on Flickr.'><img src='/images/logos/flickr_logo_gamma.gif' alt='Visit Flickr' style='float:left; margin: 5px;' /></a>You are going to love the shopping malls photos that we have for you.<a href='http://www.flickr.com/photos/gurgaonshoppingmalls' target='_blank' title='Visit the amazing photographs of Gurgaon Shopping Malls on Flickr.'><br /><br />Visit and comment our Flickr.com page&nbsp;&raquo;</a>";
document.getElementById('active1').style.background='#eee'
document.getElementById('active2').style.background='#fff'
//document.getElementById('active3').style.background='#fff'
//document.getElementById('active4').style.background='#fff'
}
if (init ==2){
document.getElementById('showData').innerHTML = "<a href='http://www.youtube.com/gurgaonshoppingmalls' target='_blank' title='Visit the Gurgaon Shopping Malls YouTube channel.'><img src='/images/logos/you_tube_logo.gif' alt='YouTube' style='float:left; margin: 5px;' /></a>Watch the Gurgaon Shopping Malls on video contributed by our users and visitors. <a href='http://www.youtube.com/gurgaonshoppingmalls' target='_blank' title='Visit the Gurgaon Shopping Malls YouTube channel.'> Visit, comment and subscribe to our channel &raquo;</a>";
document.getElementById('active1').style.background='#fff'
document.getElementById('active2').style.background='#eee'
//document.getElementById('active3').style.background='#fff'
//document.getElementById('active4').style.background='#fff'
}
/*if (init ==3){
document.getElementById('showData').innerHTML = "Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab <img src='http://www.brainjar.com/css/tabs/graphics/bw.jpg'/>";
document.getElementById('active1').style.background='#fff'
document.getElementById('active2').style.background='#fff'
document.getElementById('active3').style.background='#eee'
//document.getElementById('active4').style.background='#fff'
}
if (init ==4){
document.getElementById('showData').innerHTML = "this Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab <img src='http://www.gurgaonshoppingmalls.com/images/logo/Lifestyle_logo.gif'/> this Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab Hi this is some dummy text but in third tab";
document.getElementById('active1').style.background='#fff'
document.getElementById('active2').style.background='#fff'
document.getElementById('active3').style.background='#fff'
document.getElementById('active4').style.background='#eee'
}*/
}
