
var siteurl='http://www.pcs.com.bd/new';var secureurl='http://www.pcs.com.bd/new';function confirmdelete(){if(confirm("Are you sure you want to delete this?")==true){return true;}else{return false;}}
function xyz(c,a,b,s){var s=(s==null)?true:s;var o='';var m='';var m2=':otliam';for(i=0;i<=b.length;i++){o=b.charAt(i)+o;}
b=o;for(i=0;i<=m2.length;i++){m=m2.charAt(i)+m;}
if(!s){m='';}
return m+a+unescape('%'+'4'+'0')+b+'.'+c;}
function validate(val,type){if(type=='email'){return val.match(/^(?:^[A-Z0-9._%-]+@[A-Z0-9.-]+\.(?:[A-Z]{2}|com|org|net|biz|info|name|aero|biz|info|jobs|museum|name)$)$/i);}else if(type=='url'){return val.match(/^(?:\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])$/i);}else if(type=='integer'){return val.match(/^-?[0-9]+$/i);}}
function validateEmail(str){var at="@"
var dot="."
var lat=str.indexOf(at)
var lstr=str.length
var ldot=str.indexOf(dot)
if(str.indexOf(at)==-1){return false}
if(str.indexOf(at)==-1||str.indexOf(at)==0||str.indexOf(at)==lstr){return false}
if(str.indexOf(dot)==-1||str.indexOf(dot)==0||str.indexOf(dot)==lstr){return false}
if(str.indexOf(at,(lat+1))!=-1){return false}
if(str.substring(lat-1,lat)==dot||str.substring(lat+1,lat+2)==dot){return false}
if(str.indexOf(dot,(lat+2))==-1){return false}
if(str.indexOf(" ")!=-1){return false}
return true}
function showhide(region){if(document.getElementById){if(document.getElementById(region).style.display=='none'){document.getElementById(region).style.display='block';}else{document.getElementById(region).style.display='none';}}else{alert('Sorry, your browser doesn\'t support this');}}
function showregion(region){if(document.getElementById){document.getElementById(region).style.display='block';}else{alert('Sorry, your browser doesn\'t support this');}}
function hideregion(region){if(document.getElementById){document.getElementById(region).style.display='none';}else{alert('Sorry, your browser doesn\'t support this');}}
function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+
((expires)?"; expires="+expires.toGMTString():"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");}
function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}else{begin+=2;}
var end=document.cookie.indexOf(";",begin);if(end==-1){end=dc.length;}
return unescape(dc.substring(begin+prefix.length,end));}
function deleteCookie(name,path,domain){if(getCookie(name)){document.cookie=name+"="+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
function isNull(a){return typeof a=='object'&&!a;}
function nl2br(myString){return myString.replace(/\n/g,'<br />\n');}
$(document).ready(function(){$('input.post_redirect_submit').mouseover(function(){window.status=this.title;return true;});$('input.post_redirect_submit').mouseout(function(){window.status='Done';return true;});});function frajax(action,a,b,c,d,e,f,g,h,i,j){var url=siteurl;var r=/(http|https):\/\/.*/;var m=r.exec(window.location);if(m!=null&&m.length>1){if(m[1]=='https'){url=secureurl;}}
url+='/actions/'+action+'.php?';if(a){url+='arg1='+encodeURIComponent(a);}
if(b){url+='&arg2='+encodeURIComponent(b);}
if(c){url+='&arg3='+encodeURIComponent(c);}
if(d){url+='&arg4='+encodeURIComponent(d);}
if(e){url+='&arg5='+encodeURIComponent(e);}
if(f){url+='&arg6='+encodeURIComponent(f);}
if(g){url+='&arg7='+encodeURIComponent(g);}
if(h){url+='&arg8='+encodeURIComponent(h);}
if(i){url+='&arg9='+encodeURIComponent(i);}
if(j){url+='&arg10='+encodeURIComponent(j);}
document.getElementById('frajax-iframe').src=url;return false;}
$(document).ready(function(){if($('a.flowPlayer').length&&typeof(flowplayer)!='undefined'){flowplayer("a.flowPlayer","external/flowplayer/flowplayer-3.2.5.swf",{clip:{autoPlay:false,autoBuffering:false},plugins:{controls:{backgroundColor:'#383838',bufferColor:'#9d9d9d',bufferGradient:'medium',timeColor:'#9d9d9d',progressColor:'#707070',progressGradient:'medium',buttonColor:'#6f6f6f',buttonOverColor:'#9d9d9d'}}});}});timeouts=[];$(document).ready(function(){$('#nav-primary li').hover(function(){$(this).css('background-image','url(images/bg-nav-primary.png)').find('a').css('color','#666666').end().css('background-position',(-1*$(this).position().left)+'px -25px');$('.subnav').data('inhover','no').hide();if($(this).hasClass('hassubnav')){if(timeouts[$(this).children('a').attr('rel')]){clearTimeout(timeouts[$(this).children('a').attr('rel')]);}
$(this).children('a').css('background-position','right -39px');var $subnav=$('#'+$(this).children('a').attr('rel'));$subnav.css({position:'absolute',left:(($(this).offset().left-1)+'px'),top:(($(this).offset().top+25)+'px')}).show();var columns=1;while($subnav.height()>450||(columns==1&&$('div',$subnav).length>1)){columns++;$subnav.css('width',((columns*176)+15)+'px');$('div',$subnav).css('clear','none');$('div:nth-child('+columns+'n+1)',$subnav).css('clear','left');}
var maxright=$('#nav-primary').offset().left+$('#nav-primary').width()-2;if($subnav.position().left+$subnav.width()>maxright){$subnav.css('left',maxright-$subnav.width()+'px');}}
Cufon.refresh();},function(){$(this).css('background-position',(-1*$(this).position().left)+'px top').find('a').css('color','white').end();if($(this).hasClass('hassubnav')){$(this).children('a').css('background-position','right -5px');var $subnav=$('#'+$(this).children('a').attr('rel'));if(timeouts[$(this).children('a').attr('rel')]){clearTimeout(timeouts[$(this).children('a').attr('rel')]);}
timeouts[$(this).children('a').attr('rel')]=setTimeout(function(){if($subnav.data('inhover')!='yes'){$subnav.hide();}},400);}
Cufon.refresh();});$('.subnav').hover(function(){$(this).data('inhover','yes');primarynav_item_id=$(this).attr('id').replace('subnav','primarynav');primarynav_item_id='#'+primarynav_item_id;$(primarynav_item_id).css('background-image','url(images/bg-nav-primary.png)').css('background-position',(-1*$('#'+$(this).attr('id').replace('subnav','primarynav')).position().left)+'px -25px').find('a').css('color','#666666').css('background-position','right -39px').end()},function(){$(this).data('inhover','no');$(this).hide();$('#'+$(this).attr('id').replace('subnav','primarynav')).css('background-position',(-1*$($('#'+$(this).attr('id').replace('subnav','primarynav'))).position().left)+'px top').find('a').css('color','white').css('background-position','right -5px').end();});$('#rightcol-name, #rightcol-phone').bind('blur',function(){if($(this).val()==''){$(this).val($(this).attr('default'));}}).bind('focus',function(){if($(this).val()==$(this).attr('default')){$(this).val('');}}).trigger('blur');if($('#featureimage > div').length){var current=1;window.setInterval(function(){current++;if(current>$('#featureimage > div').length){current=1;}
focuson_slide(current);},12000);}
$('#focussingon > a').click(function(){current=$('#focussingon > a').index($(this))+1;focuson_slide(current);return false;});$('#videos h2 a').bind('click',function(){if($(this).hasClass('tab2')){$('#videos').addClass('tab2').removeClass('tab1');}else{$('#videos').addClass('tab1').removeClass('tab2');}
return false;});});function focuson_slide(current){$('#featureimage > div').fadeOut();$('#featureimage > div:nth-child('+current+')').stop().fadeIn();$('#focussingon > a').removeClass('current');$('#focussingon > a:nth-child('+(current+1)+')').addClass('current');}
